From 78644a35245a4c658bcaa350d17130092d31b05b Mon Sep 17 00:00:00 2001 From: Laurent Trinques Date: Wed, 22 Feb 2023 15:40:38 +0100 Subject: [PATCH] macOS update python PATH to launch qet_tb_generator to python 3.11 --- sources/qetdiagrameditor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index 6f60b295d..bed1faca0 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -2377,10 +2377,10 @@ void QETDiagramEditor::generateTerminalBlock() #elif defined(Q_OS_MAC) if (openedProjects().count()){ - success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.9/bin/qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())}); + success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.11/bin/qet_tb_generator", {(QETDiagramEditor::currentProjectView()->project()->filePath())}); } else { - success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.9/bin/qet_tb_generator", {("")}); + success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.11/bin/qet_tb_generator", {("")}); } if (openedProjects().count()){ success = process->startDetached(QDir::homePath() + "/.qet/qet_tb_generator.app", {(QETDiagramEditor::currentProjectView()->project()->filePath())}); @@ -2431,7 +2431,8 @@ void QETDiagramEditor::generateTerminalBlock() "
" "qet-tb-generator" "
First install on macOSX" - "
1. Install, if required, python 3.9 bundle only, " + "
1. Install, if required, python 3.11 bundle only, " + "python-3.11.2-macos11.pkg" "
2 Run Profile.command script" "
" "because program use hardcoded PATH for localise qet-tb-generator plugin "