summaryrefslogtreecommitdiffstats
path: root/test/Variables/chdir.py
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-03-08 00:51:26 (GMT)
commit7f380de2d31a8ca288bd8a44a51de8f2867830be (patch)
treebeffc7420a3c8681158aeefa6b82628fa7121aca /test/Variables/chdir.py
parent4993b28ca2ef767ede531e21450f390683da6b66 (diff)
downloadSCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.zip
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.gz
SCons-7f380de2d31a8ca288bd8a44a51de8f2867830be.tar.bz2
Issue 2326, change execfile() to exec ... (FIXED)
Diffstat (limited to 'test/Variables/chdir.py')
-rw-r--r--test/Variables/chdir.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Variables/chdir.py b/test/Variables/chdir.py
index 39eccb3..621e166 100644
--- a/test/Variables/chdir.py
+++ b/test/Variables/chdir.py
@@ -52,8 +52,7 @@ print "VARIABLE =", repr(env['VARIABLE'])
test.write(['bin', 'opts.cfg'], """\
import os
os.chdir(os.path.split(__name__)[0])
-import string
-exec(string.replace(open('opts2.cfg').read(), '\\r', '\\n'))
+exec(open('opts2.cfg', 'rU').read())
""")
test.write(['bin', 'opts2.cfg'], """\