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

import sys
import Ice
import IcePy


def main():
    sliceDir = Ice.getSliceDir()
    # Automatically add the slice dir.
    if sliceDir is not None:
        sys.argv.append('-I' + sliceDir)
    val = IcePy.compile(sys.argv)
    sys.exit(int(val))


if __name__ == "__main__":
    sys.exit(main())