mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-03 11:44:11 +00:00
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:
parent
3e4450cf3f
commit
89a4b5f4f5
@ -49,7 +49,6 @@ executable = os.path.join(base, "support", bin_dir, "tahoe")
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
res = subprocess.call([executable] + sys.argv[1:], env=os.environ)
|
res = subprocess.call([executable] + sys.argv[1:], env=os.environ)
|
||||||
sys.exit(res)
|
|
||||||
except (OSError, IOError), le:
|
except (OSError, IOError), le:
|
||||||
if le.args[0] == errno.ENOENT:
|
if le.args[0] == errno.ENOENT:
|
||||||
print whoami
|
print whoami
|
||||||
@ -67,3 +66,5 @@ I just tried to invoke my brother, named "../support/bin/tahoe" and got an
|
|||||||
exception.
|
exception.
|
||||||
'''
|
'''
|
||||||
raise
|
raise
|
||||||
|
else:
|
||||||
|
sys.exit(res)
|
||||||
|
Loading…
Reference in New Issue
Block a user