source: fedd/compile_wsdl.py @ 187a8f9

Last change on this file since 187a8f9 was 2e46f35, checked in by mikeryan <mikeryan@…>, 14 years ago

switch to /usr/bin/env python to run python

  • Property mode set to 100644
File size: 453 bytes
Line 
1#!/usr/bin/env python
2
3import ZSI
4import sys
5import subprocess
6
7from string import join
8
9ver = ZSI.Version()
10
11cmd = ['wsdl2py']
12
13if ver[0] == 2:
14    if ver[1] == 0:
15        # ZSI 2.0
16        cmd.extend(sys.argv[1:-1] + ['--file', sys.argv[-1]])
17    elif ver[1] == 1:
18        cmd.extend(sys.argv[1:])
19    else:
20        sys.exit("Unknown version: %s" % join(ver, "."))
21else:
22    sys.exit("Unknown version: %s" % join(ver, "."))
23
24print "%s" % join(cmd)
25sys.exit(subprocess.call(cmd))
Note: See TracBrowser for help on using the repository browser.