]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blobdiff - bin/tahoe
setup: make the bin/tahoe executable exit with the appropriate exit code
[tahoe-lafs/tahoe-lafs.git] / 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