Fix the WAF --run option for running a program with command line options

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-02-19 21:43:28 +00:00
parent 2a3e635cd1
commit 78a151d337

View File

@@ -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]