From d787eb6048240e56e1ce71b83e6fe98341f024ba Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 18 Mar 2026 16:01:02 +0100 Subject: [PATCH] meson: flip python check to avoid nesting conditions in the next commits Part-of: --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2ee98300d58..91f76f6cca9 100644 --- a/meson.build +++ b/meson.build @@ -1041,9 +1041,11 @@ python_exec_list = ['python3', 'python3.16', 'python3.15', 'python3.14', 'python foreach p : python_exec_list prog_python = find_program(p, required : false, version : python_version_req) - if prog_python.found() - break + if not prog_python.found() + continue endif + + break endforeach if not prog_python.found()