summaryrefslogtreecommitdiff
path: root/bootstrap.py
diff options
context:
space:
mode:
authorAnatoly Techtonik <techtonik@gmail.com>2010-07-05 20:25:39 +0000
committerAnatoly Techtonik <techtonik@gmail.com>2010-07-05 20:25:39 +0000
commitd8d56ef4bf267ad3e15cf2cd90b1651f371adeeb (patch)
treef1d2de213980dcea8f5f2aae92f3c7cbbd26992a /bootstrap.py
parent31e8a06cca9560689e080c9d12c21bf1c756de51 (diff)
downloadscons-d8d56ef4bf267ad3e15cf2cd90b1651f371adeeb.tar.gz
use subprocess in bootstrap.py instead of os.execve to avoid losing
output control on Windows - see http://bugs.python.org/issue9148
Diffstat (limited to 'bootstrap.py')
-rw-r--r--bootstrap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap.py b/bootstrap.py
index a04dbc8f..3f761389 100644
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -24,6 +24,7 @@
import os
import os.path
import sys
+import subprocess
__doc__ = """bootstrap.py
@@ -200,7 +201,7 @@ sys.stdout.flush()
os.environ['SCONS_LIB_DIR'] = os.path.join(bootstrap_dir, src_engine)
-os.execve(sys.executable, args, os.environ)
+sys.exit(subprocess.Popen(args, env=os.environ).wait())
# Local Variables:
# tab-width:4