setup: sys.exit() raises a SystemExit exception on Python 2.4 on Solaris -- fix it so that bin/tahoe doesn't interpret this as its brother having been non-executable

This commit is contained in:
Zooko O'Whielacronx 2009-01-23 18:49:11 -07:00
parent 3e4450cf3f
commit 89a4b5f4f5

View File

@ -49,7 +49,6 @@ executable = os.path.join(base, "support", bin_dir, "tahoe")
try:
res = subprocess.call([executable] + sys.argv[1:], env=os.environ)
sys.exit(res)
except (OSError, IOError), le:
if le.args[0] == errno.ENOENT:
print whoami
@ -67,3 +66,5 @@ I just tried to invoke my brother, named "../support/bin/tahoe" and got an
exception.
'''
raise
else:
sys.exit(res)