From db8194c37ca41d60365cddb18bc2484b3030d995 Mon Sep 17 00:00:00 2001 From: cgalvan Date: Fri, 9 Jan 2009 12:03:00 -0700 Subject: [PATCH] use subprocess.call instead of os.execve in bin/tahoe --- bin/tahoe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.37.2