setup: make the bin/tahoe executable exit with the appropriate exit code
authorZooko O'Whielacronx <zooko@zooko.com>
Thu, 22 Jan 2009 22:54:05 +0000 (15:54 -0700)
committerZooko O'Whielacronx <zooko@zooko.com>
Thu, 22 Jan 2009 22:54:05 +0000 (15:54 -0700)
bin/tahoe

index 7299407e30f78100bbe1786c384529faa85f4631..963abff005a707d83fbc96ee5f21869b2efd93fc 100644 (file)
--- a/bin/tahoe
+++ b/bin/tahoe
@@ -48,7 +48,8 @@ if sys.platform == "win32":
 executable = os.path.join(base, "support", bin_dir, "tahoe")
 
 try:
-    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:
     if le.args[0] == errno.ENOENT:
         print whoami