Changes between Initial Version and Version 1 of Ticket #13643, comment 1
- Timestamp:
- 07/06/20 22:20:29 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13643, comment 1
initial v1 6 6 #define PYTHON_EXE "/opt/local/bin/python3.8" 7 7 8 The following assumes that the --python switch has the version 9 of interest, not just ```python``` 8 10 Please test this, which removes the leading path info: 9 11 {{{ 10 12 diff --git a/mythtv/programs/mythbackend/main.cpp b/mythtv/programs/mythbackend/main.cpp 11 index 7cf7f5b644.. 1a6233a7ba10064413 index 7cf7f5b644..ddbef2fa53 100644 12 14 --- a/mythtv/programs/mythbackend/main.cpp 13 15 +++ b/mythtv/programs/mythbackend/main.cpp 14 @@ -94,10 +94,13 @@ int main(int argc, char **argv) 15 QCoreApplication::setApplicationName(MYTH_APPNAME_MYTHBACKEND); 16 16 @@ -96,8 +96,9 @@ int main(int argc, char **argv) 17 17 #ifdef Q_OS_MAC 18 + QFileInfo fi(PYTHON_EXE);19 + QString python_executable = fi.fileName();20 18 QString path = QCoreApplication::applicationDirPath(); 21 19 setenv("PYTHONPATH", … … 23 21 + QString("%1/../Resources/lib/%2/site-packages:%3") 24 22 .arg(path) 25 + .arg( python_executable)23 + .arg(QFileInfo(PYTHON_EXE).fileName()) 26 24 .arg(QProcessEnvironment::systemEnvironment().value("PYTHONPATH")) 27 25 .toUtf8().constData(), 1);
