summaryrefslogtreecommitdiff
path: root/python/config/slice2py.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2015-04-22 16:35:33 -0230
committerMatthew Newhook <matthew@zeroc.com>2015-04-22 16:35:33 -0230
commitcf1254cb87d99f2c4af21528bf190aed8ab700a4 (patch)
treec72544ce7fd475a272bb929a3b8e9048c78504e3 /python/config/slice2py.py
parentICE-6455 - remove slice2py and slice2rb C++ exe (diff)
downloadice-cf1254cb87d99f2c4af21528bf190aed8ab700a4.tar.bz2
ice-cf1254cb87d99f2c4af21528bf190aed8ab700a4.tar.xz
ice-cf1254cb87d99f2c4af21528bf190aed8ab700a4.zip
ICE-6455 - remove slice2py and slice2rb C++ exe
Renamed ruby/config/slice2rb.rb to ruby/config/s2rb.rb Renamed python/config/slice2py.py to python/config/s2py.py Moved slice2rb and slice2py.py from dist-utils into the scripts directory for python and ruby.
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()