diff --git a/sources/main.cpp b/sources/main.cpp index b331141a4..a8bf9bd6d 100644 --- a/sources/main.cpp +++ b/sources/main.cpp @@ -48,13 +48,6 @@ int main(int argc, char **argv) MacOSXOpenEvent open_event; app.installEventFilter(&open_event); app.setStyle(QStyleFactory::create("Fusion")); - - // Since Apple made difficult for users to set PATH, we set here for convenience. - // Users are supposed to install Homebrew Python for Python qet_tb_generator plugin. - - QByteArray path = "/usr/local/bin:"; - path += qgetenv("PATH"); - qputenv("PATH", path.constData()); #endif if (app.isSecondary()) diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index da8db6ea2..3fe55551e 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -2262,10 +2262,10 @@ void QETDiagramEditor::generateTerminalBlock() #elif defined(Q_OS_MAC) if (openedProjects().count()){ - success = process->startDetached("qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())}); + success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.8/bin/qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())}); } else { - success = process->startDetached("qet_tb_generator"); + success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.8/bin/qet_tb_generator"); } if (openedProjects().count()){ success = process->startDetached(QDir::homePath() + "/.qet/qet_tb_generator.app", {(QETDiagramEditor::currentProjectView()->project()->filePath())});