mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
use subprocess.call instead of os.execve in bin/tahoe
This commit is contained in:
parent
b35d70b1f2
commit
db8194c37c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user