summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons.py
diff options
context:
space:
mode:
Diffstat (limited to 'QMTest/TestSCons.py')
-rw-r--r--QMTest/TestSCons.py5
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)