From 89a4b5f4f50e8ce99356602b764852bec70b3931 Mon Sep 17 00:00:00 2001 From: Zooko O'Whielacronx Date: Fri, 23 Jan 2009 18:49:11 -0700 Subject: [PATCH] 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 --- bin/tahoe | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tahoe b/bin/tahoe index 963abff00..71dbc809c 100644 --- a/bin/tahoe +++ b/bin/tahoe @@ -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)