forked from p15670423/monkey
Automatically adds python scripts to path so user could use pyinstaller off the bat
This commit is contained in:
parent
dff71eabc4
commit
6245be15eb
|
@ -81,6 +81,14 @@ function Deploy-Windows([String] $monkey_home = (Get-Item -Path ".\").FullName,
|
||||||
$monkeyRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_DIR | Join-Path -ChildPath "\requirements_windows.txt"
|
$monkeyRequirements = Join-Path -Path $monkey_home -ChildPath $MONKEY_DIR | Join-Path -ChildPath "\requirements_windows.txt"
|
||||||
& python -m pip install --user -r $monkeyRequirements
|
& python -m pip install --user -r $monkeyRequirements
|
||||||
|
|
||||||
|
$user_python_dir = cmd.exe /c 'py -m site --user-site'
|
||||||
|
$user_python_dir = Join-Path (Split-Path $user_python_dir) -ChildPath "\Scripts"
|
||||||
|
if(!($ENV:PATH | Select-String -SimpleMatch $user_python_dir)){
|
||||||
|
"Adding python scripts path to user's env"
|
||||||
|
$env:Path += ";"+$user_python_dir
|
||||||
|
[Environment]::SetEnvironmentVariable("Path",$env:Path,"User")
|
||||||
|
}
|
||||||
|
|
||||||
# Download mongodb
|
# Download mongodb
|
||||||
if(!(Test-Path -Path (Join-Path -Path $binDir -ChildPath "mongodb") )){
|
if(!(Test-Path -Path (Join-Path -Path $binDir -ChildPath "mongodb") )){
|
||||||
"Downloading mongodb ..."
|
"Downloading mongodb ..."
|
||||||
|
|
Loading…
Reference in New Issue