parent
601ff91622
commit
fabb49773e
2 changed files with 14 additions and 0 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