diff options
author | Brent Eagles <brent@zeroc.com> | 2005-11-14 13:09:08 +0000 |
---|---|---|
committer | Brent Eagles <brent@zeroc.com> | 2005-11-14 13:09:08 +0000 |
commit | 7693d00f1555f116585551a4fa797bc9b0b3674d (patch) | |
tree | 0ed2ba51031f5c3d5be453b112a153c0b338f5a2 /cpp/makebindist.py | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=607. Added (diff) | |
download | ice-7693d00f1555f116585551a4fa797bc9b0b3674d.tar.bz2 ice-7693d00f1555f116585551a4fa797bc9b0b3674d.tar.xz ice-7693d00f1555f116585551a4fa797bc9b0b3674d.zip |
tweaked external program code
Diffstat (limited to 'cpp/makebindist.py')
-rwxr-xr-x | cpp/makebindist.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/makebindist.py b/cpp/makebindist.py index 7a9cb484945..ea6b8db4a59 100755 --- a/cpp/makebindist.py +++ b/cpp/makebindist.py @@ -28,10 +28,11 @@ class ExtProgramError: def __str__(self): return repr(self.msg) -def runprog(commandstring): - commandtuple = commandstring.split() - result = os.spawnvpe(os.P_WAIT, commandtuple[0], commandtuple, os.environ) - if result != 0: +def runprog(commandstring, haltOnError = True): + #commandtuple = commandstring.split() + #result = os.spawnvpe(os.P_WAIT, commandtuple[0], commandtuple, os.environ) + result = os.system(commandstring) + if result != 0 and haltOnError: msg = 'Command %s failed with error code %d' % (commandstring, result) raise ExtProgramError(msg) |