Lines Matching refs:program
15 """Runs a program from the command line and returns stdout.
22 stdout from the program, as a single string.
25 Exception: the program exited with a nonzero return code.
36 def find_path_to_program(program):
37 """Returns path to an existing program binary.
40 program: Basename of the program to find (e.g., 'render_pictures').
43 Absolute path to the program binary, as a string.
46 Exception: unable to find the program binary.
50 possible_paths = [os.path.join(trunk_path, 'out', 'Release', program),
51 os.path.join(trunk_path, 'out', 'Debug', program),
53 program + '.exe'),
55 program + '.exe')]
60 'build %s?' % (program, possible_paths, program))