summaryrefslogtreecommitdiff
path: root/python/scripts/slice2py.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/scripts/slice2py.py')
-rwxr-xr-xpython/scripts/slice2py.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/python/scripts/slice2py.py b/python/scripts/slice2py.py
new file mode 100755
index 00000000000..7f2aca37164
--- /dev/null
+++ b/python/scripts/slice2py.py
@@ -0,0 +1,18 @@
+#!/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, Ice, IcePy
+def main():
+ sliceDir = Ice.getSliceDir()
+ # Automatically add the slice dir.
+ if not sliceDir is None:
+ sys.argv.append('-I' + sliceDir)
+ val = IcePy.compile(sys.argv)
+ sys.exit(int(val))