diff --git a/meson.build b/meson.build index 7de1baaf70a..7babab13635 100644 --- a/meson.build +++ b/meson.build @@ -638,7 +638,8 @@ endif ############################################################ -if run_command('python3', '-c', 'import jinja2', check : false).returncode() != 0 +python = find_program('python3') +if run_command(python, '-c', 'import jinja2', check : false).returncode() != 0 error('python3 jinja2 missing') endif