summaryrefslogtreecommitdiff
path: root/python/scripts/slice2py.py
blob: 2b04ce81c528c173a8c0b64ee76759f2bd309e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python
#
# Copyright (c) ZeroC, Inc. All rights reserved.
#

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))