use subprocess.call instead of os.execve in bin/tahoe

This commit is contained in:
cgalvan 2009-01-09 12:03:00 -07:00
parent b35d70b1f2
commit db8194c37c

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
import errno, sys, os
import errno, sys, os, subprocess
where = os.path.realpath(sys.argv[0])
base = os.path.dirname(os.path.dirname(where))
@ -44,7 +44,7 @@ os.environ["PYTHONPATH"] = pp
executable = os.path.join(base, "support", "bin", "tahoe")
try:
os.execve(executable, [executable] + sys.argv[1:], os.environ)
subprocess.call([executable] + sys.argv[1:], env=os.environ)
except (OSError, IOError), le:
if le.args[0] == errno.ENOENT:
print whoami