axis_examplecompt_changesinfo-ops
Last change
on this file since cedf721 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 | |
---|
3 | import ZSI |
---|
4 | import sys |
---|
5 | import subprocess |
---|
6 | |
---|
7 | from string import join |
---|
8 | |
---|
9 | ver = ZSI.Version() |
---|
10 | |
---|
11 | cmd = ['wsdl2py'] |
---|
12 | |
---|
13 | if 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, ".")) |
---|
21 | else: |
---|
22 | sys.exit("Unknown version: %s" % join(ver, ".")) |
---|
23 | |
---|
24 | print "%s" % join(cmd) |
---|
25 | sys.exit(subprocess.call(cmd)) |
---|
Note: See
TracBrowser
for help on using the repository browser.