setup: make the bin/tahoe executable exit with the appropriate exit code

This commit is contained in:
Zooko O'Whielacronx 2009-01-22 15:54:05 -07:00
parent b77c89ac60
commit 824edc438f

View File

@ -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