[LyX/master] Add another option to get python by using the unversioned name
José Matos
jamatos at lyx.org
Fri Aug 16 16:33:30 UTC 2024
commit 34a616bd9187937106977fd64ded620f2aeb8f45
Author: José Matos <jamatos at lyx.org>
Date: Fri Aug 16 17:33:14 2024 +0100
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;
More information about the lyx-cvs
mailing list