[orca] Fix finding the Python module with automake >= 1.16.4



commit 9f217b6423bde8b9e5d8969ea5781b10ac5d9f2c
Author: Colomban Wendling <cwendling hypra fr>
Date:   Tue Oct 18 14:05:35 2022 +0000

    Fix finding the Python module with automake >= 1.16.4

 src/orca/orca_bin.py.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/orca/orca_bin.py.in b/src/orca/orca_bin.py.in
index 8c9d40153..c8a9a1d51 100644
--- a/src/orca/orca_bin.py.in
+++ b/src/orca/orca_bin.py.in
@@ -36,7 +36,9 @@ import sys
 import time
 
 sys.prefix = '@prefix@'
-pythondir = '@pythondir@'.replace('${prefix}', '@prefix@')
+pythondir = '@pythondir@'
+pythondir = pythondir.replace('${PYTHON_PREFIX}', '@PYTHON_PREFIX@')
+pythondir = pythondir.replace('${prefix}', '@prefix@')
 sys.path.insert(1, pythondir)
 
 # Do not import Orca here. It is imported in main(). The reason why is that


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]