From 43a5fd98a5d6a8e40a21dc00a9fe4006a32cb30f Mon Sep 17 00:00:00 2001 From: Heiko Becker Date: Mon, 21 Mar 2022 20:47:02 +0100 Subject: [PATCH] meson: Detect python instead of hard-coding python3 It allows to specify the desired python executable (and version) via meson's native file if there are multiple versions available. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 7de1baaf70..7babab1363 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