summaryrefslogtreecommitdiff
path: root/python/config/slice2py.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/config/slice2py.py')
-rwxr-xr-xpython/config/slice2py.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/python/config/slice2py.py b/python/config/slice2py.py
deleted file mode 100755
index 64d73120ace..00000000000
--- a/python/config/slice2py.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env python
-# **********************************************************************
-#
-# Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
-#
-# This copy of Ice is licensed to you under the terms described in the
-# ICE_LICENSE file included in this distribution.
-#
-# **********************************************************************
-
-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")
-
- 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
-
-def main():
- val = IcePy.compile(sys.argv)
- sys.exit(int(val))
-
-if __name__ == '__main__':
- main()