Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

activate.ps1: Fix horribly broken PCBuild and PCBuild\amd64 code.

  • Loading branch information...
commit 9d232f509abc970a4733fb1884b406aea0f8fb08 1 parent 1ed4ea1
Henri Wiechers authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 bin/activate.ps1
9 bin/activate.ps1
View
@@ -69,14 +69,15 @@ if (!$PyInstallPathKey) {
$script:PyInstallPath = $PyInstallPathKey.GetValue('');
ForEach($subdir in @('', 'PCBuild', 'PCBuild\amd64')) {
- $script:PyExeDir = Join-Path $PyInstallPath $_;
- $script:PyExePath = Join-Path $PyExeDir python.exe;
- if (Test-Path $PyExePath) {
+ $script:PossiblePyExePath = (
+ Join-Path (Join-Path $PyInstallPath $subdir) python.exe);
+ if (Test-Path $PossiblePyExePath) {
+ $script:PyExeDir = Split-Path $PossiblePyExePath
break;
}
}
-if (!$PyExePath) {
+if (!$PyExeDir) {
"Error: Unable to find python.exe in installation path " + $PyInstallPath
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.