meson: flip python check to avoid nesting conditions in the next commits

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40514>
This commit is contained in:
Eric Engestrom 2026-03-18 16:01:02 +01:00 committed by Marge Bot
parent 929eb9a021
commit d787eb6048

View file

@ -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()