From: cgalvan Date: Fri, 9 Jan 2009 19:03:00 +0000 (-0700) Subject: use subprocess.call instead of os.execve in bin/tahoe X-Git-Url: https://git.rkrishnan.org/simplejson/components/com_hotproperty/status?a=commitdiff_plain;h=db8194c37ca41d60365cddb18bc2484b3030d995;p=tahoe-lafs%2Ftahoe-lafs.git use subprocess.call instead of os.execve in bin/tahoe --- diff --git a/bin/tahoe b/bin/tahoe index 2519cb9c..45fb1e22 100644 --- a/bin/tahoe +++ b/bin/tahoe @@ -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