summaryrefslogtreecommitdiff
path: root/test/Command.py
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 +0000
committerThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 +0000
commit92fd45b8c36d14e9a4edb2a4b5a78882167e7525 (patch)
tree912fb4db4a3e452f811ab3a922a05d76bf4dba10 /test/Command.py
parentcefa78744e92f319112c1a5fc26f34727e9bbc5c (diff)
downloadscons-92fd45b8c36d14e9a4edb2a4b5a78882167e7525.tar.gz
Fix for backslash being treated as an escape character
On my windows system, my python is in c:\apps\32\python. Theres a lot of places where that \32 gets turned into an ascii character and the unit tests don't run.
Diffstat (limited to 'test/Command.py')
-rw-r--r--test/Command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Command.py b/test/Command.py
index 74046b10..5f72c94b 100644
--- a/test/Command.py
+++ b/test/Command.py
@@ -63,15 +63,15 @@ def sub(env, target, source):
t.close()
return 0
-env = Environment(COPY_THROUGH_TEMP = '%(_python_)s build.py .tmp $SOURCE\\n%(_python_)s build.py $TARGET .tmp',
+env = Environment(COPY_THROUGH_TEMP = r'%(_python_)s build.py .tmp $SOURCE' + '\\n' + r'%(_python_)s build.py $TARGET .tmp',
EXPAND = '$COPY_THROUGH_TEMP')
env.Command(target = 'f1.out', source = 'f1.in',
action = buildIt)
env.Command(target = 'f2.out', source = 'f2.in',
action = r'%(_python_)s build.py temp2 $SOURCES' + '\\n' + r'%(_python_)s build.py $TARGET temp2')
env.Command(target = 'f3.out', source = 'f3.in',
- action = [ [ r'%(python)s', 'build.py', 'temp3', '$SOURCES' ],
- [ r'%(python)s', 'build.py', '$TARGET', 'temp3'] ])
+ action = [ [ r'%(_python_)s', 'build.py', 'temp3', '$SOURCES' ],
+ [ r'%(_python_)s', 'build.py', '$TARGET', 'temp3'] ])
Command(target = 'f4.out', source = 'sub', action = sub)
env.Command(target = 'f5.out', source = 'f5.in', action = buildIt,
XYZZY='XYZZY is set')