diff options
Diffstat (limited to 'scripts/Util.py')
-rw-r--r-- | scripts/Util.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/Util.py b/scripts/Util.py index fcb628f4e42..34390c7030f 100644 --- a/scripts/Util.py +++ b/scripts/Util.py @@ -1956,11 +1956,18 @@ class PythonMapping(CppBasedMapping): return sys.executable + " " + exe def getEnv(self, process, current): + c = current.config env = CppBasedMapping.getEnv(self, process, current) if current.driver.getIceDir(self) != platform.getIceDir(self): # If not installed in the default platform installation directory, add # the Ice python directory to PYTHONPATH - env["PYTHONPATH"] = os.path.join(current.driver.getIceDir(self), "python") + + pythondirs = [] + if isinstance(platform, Windows): + pythondirs.append(os.path.join(current.driver.getIceDir(self), "python", c.buildPlatform, c.buildConfig)) + pythondirs.append(os.path.join(current.driver.getIceDir(self), "python")) + + env["PYTHONPATH"] = os.pathsep.join(pythondirs) return env def getDefaultExe(self, processType, config): |