From 78a151d337d3fc1eb807f783b9a81428930fe907 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Tue, 19 Feb 2008 21:43:28 +0000 Subject: [PATCH] Fix the WAF --run option for running a program with command line options --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index 0d37b9a30..66b779a0b 100644 --- a/wscript +++ b/wscript @@ -348,7 +348,7 @@ def run_program(program_string, command_template=None): """ 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]