From: José Matos Date: Fri, 16 Aug 2024 16:33:14 +0000 (+0100) Subject: Add another option to get python by using the unversioned name X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=34a616bd9187937106977fd64ded620f2aeb8f45;p=lyx.git Add another option to get python by using the unversioned name --- 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;