Commits

Anonymous committed 9589444

Handle non-64-bit IronPython intallations

Comments (0)

Files changed (1)

     Copy-Item -Force $TargetPath .\tests\
     
     if(($IronPythonVersion -eq '2.6') -and ($TargetFrameworkVersion -eq 'v4.0')) {
-        $ipyPath = "C:\Program Files (x86)\IronPython 2.6 for .NET 4.0"
+        $ipyPaths = "C:\Program Files\IronPython 2.6 for .NET 4.0","C:\Program Files (x86)\IronPython 2.6 for .NET 4.0"
     } else {
-        $ipyPath = "C:\Program Files (x86)\IronPython $IronPythonVersion"
+        $ipyPaths = "C:\Program Files\IronPython $IronPythonVersion","C:\Program Files (x86)\IronPython $IronPythonVersion"
     }
     
     $oldEnvPath = $env:Path
-    $env:Path = $ipyPath + ";$env:Path"
+    $env:Path = $ipyPaths + @("$env:Path") -join ';'
     
     Push-Location .\tests\
     ipy test_sqlite.py