From 34a616bd9187937106977fd64ded620f2aeb8f45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matos?= Date: Fri, 16 Aug 2024 17:33:14 +0100 Subject: [PATCH] Add another option to get python by using the unversioned name --- src/support/os.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/support/os.cpp b/src/support/os.cpp index af68fc4a06..9a901cfd02 100644 --- a/src/support/os.cpp +++ b/src/support/os.cpp @@ -128,6 +128,10 @@ static string const find_python_binary() } } + // last chance: try the unversioned name + if (command.empty()) + command = python_call("python"); + if (!command.empty()) return command; -- 2.39.5