diff options
author | Steven Knight <knight@baldmt.com> | 2010-06-28 05:31:12 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-06-28 05:31:12 (GMT) |
commit | e99b9bfc9039863e476af51a9b8920cb711062de (patch) | |
tree | e1f058ff3051f4c162737f479d27ef1920ad89f1 /QMTest/TestSCons.py | |
parent | 8d8c099bade941250c795374297aa5dcd39e66e6 (diff) | |
download | SCons-e99b9bfc9039863e476af51a9b8920cb711062de.zip SCons-e99b9bfc9039863e476af51a9b8920cb711062de.tar.gz SCons-e99b9bfc9039863e476af51a9b8920cb711062de.tar.bz2 |
Windows fix: use shell=True on subprocess.Popen(), don't use communicate().
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r-- | QMTest/TestSCons.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/QMTest/TestSCons.py b/QMTest/TestSCons.py index 039afe0..3d07f35 100644 --- a/QMTest/TestSCons.py +++ b/QMTest/TestSCons.py @@ -91,7 +91,7 @@ def gccFortranLibs(): """ libs = ['g2c'] - cmd = ['gcc', '-v'] + cmd = 'gcc -v' try: import subprocess @@ -102,7 +102,8 @@ def gccFortranLibs(): except OSError: return libs else: - stderr = subprocess.Popen(cmd, stderr=subprocess.PIPE).communicate()[1] + p = subprocess.Popen(cmd, shell=True, stderr=subprocess.PIPE) + stderr = p.stderr.read() m = re.search('gcc version (\d\.\d)', stderr) if m: gcc_version = m.group(1) |