summaryrefslogtreecommitdiff
path: root/python/config/s2py.py
blob: 9ba3c7521d6f21c0ef8fa8a50d6772dd43e01783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# **********************************************************************
#
# Copyright (c) 2003-2016 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.insert(1, os.path.join(os.path.dirname(sys.argv[0]), "..", "python"))

if sys.platform == "win32":
    os.putenv("PATH", "{0};{1};{2}".format(
        os.getenv('PATH'),
        os.path.join(os.path.dirname(sys.argv[0]), "..", "..", "cpp", "bin"),
        os.path.join(os.path.dirname(sys.argv[0]), "..", "..", "cpp", "third-party-packages", 
            "bzip2.v100", "build", "native", "bin",
            "Win32" if "32bit" in platform.architecture() else "x64", "Release")))

import IcePy

def main():
    val = IcePy.compile(sys.argv)
    sys.exit(int(val))

if __name__ == '__main__':
        main()