Changes between Initial Version and Version 1 of Ticket #13643, comment 1


Ignore:
Timestamp:
07/06/20 22:20:29 (6 years ago)
Author:
Bill Meek

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13643, comment 1

    initial v1  
    66#define PYTHON_EXE "/opt/local/bin/python3.8"
    77
     8The following assumes that the --python switch has the version
     9of interest, not just ```python```
    810Please test this, which removes the leading path info:
    911{{{
    1012diff --git a/mythtv/programs/mythbackend/main.cpp b/mythtv/programs/mythbackend/main.cpp
    11 index 7cf7f5b644..1a6233a7ba 100644
     13index 7cf7f5b644..ddbef2fa53 100644
    1214--- a/mythtv/programs/mythbackend/main.cpp
    1315+++ 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)
    1717 #ifdef Q_OS_MAC
    18 +    QFileInfo fi(PYTHON_EXE);
    19 +    QString python_executable = fi.fileName();
    2018     QString path = QCoreApplication::applicationDirPath();
    2119     setenv("PYTHONPATH",
     
    2321+           QString("%1/../Resources/lib/%2/site-packages:%3")
    2422            .arg(path)
    25 +           .arg(python_executable)
     23+           .arg(QFileInfo(PYTHON_EXE).fileName())
    2624            .arg(QProcessEnvironment::systemEnvironment().value("PYTHONPATH"))
    2725            .toUtf8().constData(), 1);