Merge pull request #388 from nirbheek/extprog.path
Add path() method to ExternalProgramHolder typespull/401/head
commit
2cbe876f71
4 changed files with 21 additions and 1 deletions
@ -0,0 +1,11 @@ |
||||
project('find program', 'c') |
||||
|
||||
prog = find_program('program.py') |
||||
|
||||
# Use either Python3 or 2 to run this |
||||
python = find_program('python3', required : false) |
||||
if not python.found() |
||||
python = find_program('python') |
||||
endif |
||||
|
||||
run_command(python, prog.path()) |
@ -0,0 +1,3 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
print("Found") |
Loading…
Reference in new issue