Fix the WAF --run option for running a program with command line options
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 19 Feb 2008 21:43:28 +0000
changeset 2345 79f77914c31c
parent 2344 7617aa80498d
child 2346 ff124e6986a7
Fix the WAF --run option for running a program with command line options
wscript
--- a/wscript	Sun Feb 17 14:02:45 2008 +0000
+++ b/wscript	Tue Feb 19 21:43:28 2008 +0000
@@ -348,7 +348,7 @@
     """
     env = Params.g_build.env_of_name('default')
 
-    if command_template is None:
+    if command_template in (None, '%s'):
         argv = shlex.split(program_string)
         program_name = argv[0]