summaryrefslogtreecommitdiffstats
path: root/QMTest/TestSCons_time.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-02 03:19:29 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-03-02 03:19:29 (GMT)
commitc1396537e5cae88e6357931dc6efe4074cf54ced (patch)
treecbd8a625268ec290a2d2e03bbad4a94de8678919 /QMTest/TestSCons_time.py
parent22364c2fd6117fefb82e0addb7e9efca027e5c2e (diff)
downloadSCons-c1396537e5cae88e6357931dc6efe4074cf54ced.zip
SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.gz
SCons-c1396537e5cae88e6357931dc6efe4074cf54ced.tar.bz2
replace execfile() by equivalent exec statement
Diffstat (limited to 'QMTest/TestSCons_time.py')
-rw-r--r--QMTest/TestSCons_time.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/QMTest/TestSCons_time.py b/QMTest/TestSCons_time.py
index 869e0cb..0747393 100644
--- a/QMTest/TestSCons_time.py
+++ b/QMTest/TestSCons_time.py
@@ -46,6 +46,7 @@ scons_py = """\
#!/usr/bin/env python
import os
import sys
+import string
def write_args(fp, args):
fp.write(args[0] + '\\n')
for arg in args[1:]:
@@ -58,7 +59,7 @@ for arg in sys.argv[1:]:
write_args(profile, sys.argv)
break
sys.stdout.write('SCONS_LIB_DIR = ' + os.environ['SCONS_LIB_DIR'] + '\\n')
-execfile('SConstruct')
+exec(string.replace(open('SConstruct').read(), '\\r', '\\n'))
"""
aegis_py = """\