diff options
author | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-09-10 11:16:26 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2017-09-10 11:16:26 +0000 |
commit | 2ef18dac6cdab60e8a99dfc3ffb2ba3b06a5f3bf (patch) | |
tree | 155cd4eccb5b298f93fe36437b9db450d6e23a6d /coin/provisioning/common/python.ps1 | |
parent | a1f173fc67587062a3e777c05131611b228f38e3 (diff) | |
parent | dd3d32d13cf03a9e6ca661408b7995e8493c6af4 (diff) |
Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into refs/staging/5.10v5.10.0-alpha1
Diffstat (limited to 'coin/provisioning/common/python.ps1')
-rw-r--r-- | coin/provisioning/common/python.ps1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/coin/provisioning/common/python.ps1 b/coin/provisioning/common/python.ps1 index 6c88689a..29114456 100644 --- a/coin/provisioning/common/python.ps1 +++ b/coin/provisioning/common/python.ps1 @@ -62,7 +62,9 @@ echo "Chancing allowZip64 value to 'True'..." (Get-Content C:\Python27\lib\zipfile.py) | ForEach-Object { $_ -replace "allowZip64=False", "allowZip64=True" } | Set-Content C:\Python27\lib\zipfile.py echo "Remove $package..." del $package -[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Python27;C:\Python27\Scripts", [EnvironmentVariableTarget]::Machine) + +$oldPath = [System.Environment]::GetEnvironmentVariable('Path', 'Machine') +[Environment]::SetEnvironmentVariable("Path", $oldPath + ";C:\Python27;C:\Python27\Scripts", [EnvironmentVariableTarget]::Machine) C:\Python27\python.exe -m ensurepip # Install python virtual env |