Windows portability: escape strings with file path names, which
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 20 Sep 2008 01:07:39 +0000 (01:07 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 20 Sep 2008 01:07:39 +0000 (01:07 +0000)
have \ separators on Windows.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3440 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/ExecuteInvalidateCache.py

index aad12e44d585afad1275b4a71232c565e61f0112..9c328a7348e837668a5f776a3c64f3bbb62e28a2 100644 (file)
@@ -69,10 +69,10 @@ exists( n2 )
 Execute(Copy('abc', 'def'))
 exists( n1 )
 
-n3 = File("%(subfn)s")
+n3 = File(r"%(subfn)s")
 exists( n3 )
 Execute(Mkdir('sub'))
-Execute(Touch("%(subfn)s"))
+Execute(Touch(r"%(subfn)s"))
 exists( n3 )
 """ % locals())