wscript
changeset 2345 79f77914c31c
parent 2344 7617aa80498d
child 2622 6440851b111a
equal deleted inserted replaced
2344:7617aa80498d 2345:79f77914c31c
   346     full path to the program.  Else, program_string is interpreted as
   346     full path to the program.  Else, program_string is interpreted as
   347     a shell command with first name being the program name.
   347     a shell command with first name being the program name.
   348     """
   348     """
   349     env = Params.g_build.env_of_name('default')
   349     env = Params.g_build.env_of_name('default')
   350 
   350 
   351     if command_template is None:
   351     if command_template in (None, '%s'):
   352         argv = shlex.split(program_string)
   352         argv = shlex.split(program_string)
   353         program_name = argv[0]
   353         program_name = argv[0]
   354 
   354 
   355         try:
   355         try:
   356             program_obj = _find_program(program_name, env)
   356             program_obj = _find_program(program_name, env)