MacOS: try to remove hard coded python PATH

This commit is contained in:
Laurent Trinques
2020-06-16 17:21:05 +02:00
parent b8b0bbed44
commit 36071e9cf5
2 changed files with 9 additions and 2 deletions

View File

@@ -2262,10 +2262,10 @@ void QETDiagramEditor::generateTerminalBlock()
#elif defined(Q_OS_MAC)
if (openedProjects().count()){
success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.8/bin/qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())});
success = process->startDetached("qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())});
}
else {
success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.8/bin/qet_tb_generator");
success = process->startDetached("qet_tb_generator");
}
if (openedProjects().count()){
success = process->startDetached(QDir::homePath() + "/.qet/qet_tb_generator.app", {(QETDiagramEditor::currentProjectView()->project()->filePath())});