--- a/wutils.py Wed Jun 24 16:12:09 2009 +0100
+++ b/wutils.py Wed Jun 24 18:42:07 2009 +0100
@@ -159,6 +159,7 @@
if command_template in (None, '%s'):
argv = shlex.split(program_string)
+ #print "%r ==shlex.split==> %r" % (program_string, argv)
program_name = argv[0]
try:
@@ -188,7 +189,9 @@
#except AttributeError:
# raise Utils.WafError("%s does not appear to be a program" % (program_name,))
- execvec = shlex.split(command_template % (program_node.abspath(env),))
+ tmpl = command_template % (program_node.abspath(env),)
+ execvec = shlex.split(tmpl.replace('\\', '\\\\'))
+ #print "%r ==shlex.split==> %r" % (command_template % (program_node.abspath(env),), execvec)
return program_name, execvec
def run_program(program_string, env, command_template=None, cwd=None):