summaryrefslogtreecommitdiffstats
path: root/test/Command.py
diff options
context:
space:
mode:
authorThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 (GMT)
committerThomas Tanner <trtanner@btinternet.com>2016-01-30 22:39:17 (GMT)
commit7f5d85d7f4428fb2fb7271952a00c87dc8c66533 (patch)
tree912fb4db4a3e452f811ab3a922a05d76bf4dba10 /test/Command.py
parenta88dd02a03343dd0a0e17f6ad589148bf77d0493 (diff)
downloadSCons-7f5d85d7f4428fb2fb7271952a00c87dc8c66533.zip
SCons-7f5d85d7f4428fb2fb7271952a00c87dc8c66533.tar.gz
SCons-7f5d85d7f4428fb2fb7271952a00c87dc8c66533.tar.bz2
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 74046b1..5f72c94 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')