Use correct bit-depth tools when building the kit
If you use the 32-bit version of ConEmu and/or? Python on a 64-bit OS then psutil will throw access denied errors when trying to wait for processes.
This commit is contained in:
parent
ca45fe800f
commit
5d54b6de4b
1 changed files with 9 additions and 2 deletions
|
|
@ -192,6 +192,13 @@ if ($MyInvocation.InvocationName -ne ".") {
|
||||||
|
|
||||||
## Done ##
|
## Done ##
|
||||||
Pop-Location
|
Pop-Location
|
||||||
$ArgumentList = @("-run", "$Bin\Python\x32\python.exe", "$Bin\Scripts\build_kit_windows.py", "-new_console:n")
|
if ([System.Environment]::Is64BitOperatingSystem) {
|
||||||
Start-Process -FilePath "$Bin\ConEmu\ConEmu.exe" -ArgumentList $ArgumentList -verb RunAs
|
$ConEmu = "$Bin\ConEmu\ConEmu64.exe"
|
||||||
|
$Python = "$Bin\Python\x64\python.exe"
|
||||||
|
} else {
|
||||||
|
$ConEmu = "$Bin\ConEmu\ConEmu.exe"
|
||||||
|
$Python = "$Bin\Python\x32\python.exe"
|
||||||
|
}
|
||||||
|
$ArgumentList = @("-run", "$Python", "$Bin\Scripts\build_kit_windows.py", "-new_console:n")
|
||||||
|
Start-Process -FilePath "$ConEmu" -ArgumentList $ArgumentList -verb RunAs
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue