summaryrefslogtreecommitdiff
path: root/scripts/Util.py
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-04-17 16:15:29 +0200
committerJose <jose@zeroc.com>2017-04-17 16:15:29 +0200
commita6350d4b5395d77047c0aaa073842df74e2b33f0 (patch)
tree448e2c9ed43d783349801171532209cddc0f6260 /scripts/Util.py
parentBumped timeout to 4 minutes for test inactivity (diff)
downloadice-a6350d4b5395d77047c0aaa073842df74e2b33f0.tar.bz2
ice-a6350d4b5395d77047c0aaa073842df74e2b33f0.tar.xz
ice-a6350d4b5395d77047c0aaa073842df74e2b33f0.zip
Fix PATH setting for Windows binary distributions
Diffstat (limited to 'scripts/Util.py')
-rw-r--r--scripts/Util.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/Util.py b/scripts/Util.py
index 9ecdb23c4e9..d33755b172f 100644
--- a/scripts/Util.py
+++ b/scripts/Util.py
@@ -267,14 +267,15 @@ class Windows(Platform):
# Platform/Config taget bin directories.
#
platform = current.driver.configs[mapping].buildPlatform
- config = "Debug" if current.driver.configs[mapping].buildConfig.find("Debug") >= 0 else "Release"
+ buildConfig = current.driver.configs[mapping].buildConfig
+ config = "Debug" if buildConfig.find("Debug") >= 0 else "Release"
if current.driver.useIceBinDist(mapping):
v140 = self.getCompiler() == "v140"
cpp = isinstance(mapping, CppMapping)
csharp = isinstance(mapping, CSharpMapping)
- if (cpp and v140 and platform == "x64" and config == "Release") or (not csharp and not cpp):
+ if (cpp and v140 and platform == "x64" and buildConfig == "Release") or (not csharp and not cpp):
return "bin"
elif csharp or isinstance(process, SliceTranslator):
return os.path.join("tools")
@@ -326,7 +327,7 @@ class Windows(Platform):
# Use binary distribution from ICE_HOME if building for C++/VC140/x64/Release or
# for another mapping than C++ or C#.
#
- if (cpp and v140 and platform == "x64" and config == "Release") or (not csharp and not cpp):
+ if (cpp and v140 and platform == "x64" and current.config == "Release") or (not csharp and not cpp):
return os.environ.get("ICE_HOME")
#