mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
macOS update python PATH to launch qet_tb_generator to python 3.11
This commit is contained in:
parent
c53f5fbc66
commit
78644a3524
@ -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()
|
||||
"<br>"
|
||||
"<a href='https://pypi.python.org/pypi/qet-tb-generator'>qet-tb-generator</a>"
|
||||
"<br><B><U> First install on macOSX</B></U>"
|
||||
"<br>1. Install, if required, python 3.9 bundle only, "
|
||||
"<br>1. Install, if required, python 3.11 bundle only, "
|
||||
"<a href='https://www.python.org/ftp/python/3.11.2/python-3.11.2-macos11.pkg'>python-3.11.2-macos11.pkg</a>"
|
||||
"<br>2 Run Profile.command script"
|
||||
"<br>"
|
||||
"because program use hardcoded PATH for localise qet-tb-generator plugin "
|
||||
|
Loading…
x
Reference in New Issue
Block a user