diff options
author | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2009-03-08 00:51:26 (GMT) |
commit | 7f380de2d31a8ca288bd8a44a51de8f2867830be (patch) | |
tree | beffc7420a3c8681158aeefa6b82628fa7121aca /test/Variables/chdir.py | |
parent | 4993b28ca2ef767ede531e21450f390683da6b66 (diff) | |
download | SCons-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.py | 3 |
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'], """\ |