summaryrefslogtreecommitdiff
path: root/python/config
diff options
context:
space:
mode:
authornewhook <matthew.newhook@gmail.com>2015-04-22 16:17:04 -0230
committernewhook <matthew.newhook@gmail.com>2015-04-22 16:17:04 -0230
commite95d34aa245abb5c7dba23a2da0d17c90e90f706 (patch)
tree8e56352ab7b319f883e633622a6802d4a3e23eec /python/config
parentICE-6457 (diff)
downloadice-e95d34aa245abb5c7dba23a2da0d17c90e90f706.tar.bz2
ice-e95d34aa245abb5c7dba23a2da0d17c90e90f706.tar.xz
ice-e95d34aa245abb5c7dba23a2da0d17c90e90f706.zip
ICE-6455 - remove slice2py and slice2rb C++ exe
Fix slice2rb.rb and slice2py.py scripts for Windows. Fix build issue with IceSSL and MinGW.
Diffstat (limited to 'python/config')
-rwxr-xr-xpython/config/slice2py.py27
1 files changed, 16 insertions, 11 deletions
diff --git a/python/config/slice2py.py b/python/config/slice2py.py
index 237eb023737..64d73120ace 100755
--- a/python/config/slice2py.py
+++ b/python/config/slice2py.py
@@ -11,17 +11,22 @@
import sys, os, platform
sys.path.append(os.path.join(os.path.dirname(sys.argv[0]), "..", "python"))
if sys.platform == "win32":
- path = os.getenv('PATH')
- path = path + ';' + os.path.join(os.path.dirname(sys.argv[0]), "..", "..", "cpp", "bin")
- if os.getenv("PLATFORM") == "X64":
- bit, name = platform.architecture()
- if bit == "64bit":
- path = path + ";c:/Program Files (x86)/ZeroC/Ice-3.6.0-ThirdParty/bin/x64"
- else:
- path = path + ";c:/Program Files (x86)/ZeroC/Ice-3.6.0-ThirdParty/bin"
- else:
- path = path + ";c:/Program Files/ZeroC/Ice-3.6.0-ThirdParty/bin"
- os.putenv('PATH', path)
+ path = os.getenv('PATH')
+ path = path + ';' + os.path.join(os.path.dirname(sys.argv[0]), "..", "..", "cpp", "bin")
+
+ programFiles = "ProgramFiles"
+ arch1 = os.getenv('PROCESSOR_ARCHITECTURE')
+ arch2 = os.getenv('PROCESSOR_ARCHITEW6432')
+
+ # 64 bit windows machine?
+ if arch1 == "AMD64" or arch1 == "IA64" or arch2 == "AMD64" or arch2 == "IA64":
+ programFiles += "(x86)"
+ bit, name = platform.architecture()
+ # 64 bit python?
+ if bit == "64bit":
+ suffix = "x64"
+ path = path + ";" + os.path.join(os.getenv(programFiles), "ZeroC", "Ice-3.6.0-ThirdParty","bin", suffix)
+ os.putenv('PATH', path)
import IcePy