diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-08 23:35:59 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-09 21:23:18 +0200 |
| commit | 6ac9a8e738dae97c64308da83949931fb726bbe7 (patch) | |
| tree | 17d4a5db37d2df3c3748ec767701f74882fa912e /test cases/python3/1 basic | |
| parent | fbabe8ad85725762e46b7c4c2f2c680c3351ec80 (diff) | |
| download | meson-6ac9a8e738dae97c64308da83949931fb726bbe7.tar.gz | |
Add .find_python() method. Supersedes #777.
Diffstat (limited to 'test cases/python3/1 basic')
| -rw-r--r-- | test cases/python3/1 basic/meson.build | 3 | ||||
| -rw-r--r-- | test cases/python3/1 basic/subdir/meson.build | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test cases/python3/1 basic/meson.build b/test cases/python3/1 basic/meson.build index badd3e58c..9d5f874c6 100644 --- a/test cases/python3/1 basic/meson.build +++ b/test cases/python3/1 basic/meson.build @@ -1,6 +1,7 @@ project('python sample', 'c') -py3 = find_program('python3') +py3_mod = import('python3') +py3 = py3_mod.find_python() main = files('prog.py') diff --git a/test cases/python3/1 basic/subdir/meson.build b/test cases/python3/1 basic/subdir/meson.build index 3f275ad1b..8fe91b92e 100644 --- a/test cases/python3/1 basic/subdir/meson.build +++ b/test cases/python3/1 basic/subdir/meson.build @@ -1,5 +1,4 @@ -submain = find_program('subprog.py') - test('subdir', - submain, + py3, + args : files('subprog.py'), env : 'PYTHONPATH=' + meson.source_root()) |
