[qet] qet/qet: [4738] Add PATH for run qet_tb_generator plugin in macOSX platform

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4738
Author:   scorpio810
Date:     2016-10-13 02:08:29 +0200 (Thu, 13 Oct 2016)
Log Message:
-----------
Add PATH for run qet_tb_generator plugin in macOSX platform

Modified Paths:
--------------
    trunk/sources/qetdiagrameditor.cpp

Modified: trunk/sources/qetdiagrameditor.cpp
===================================================================
--- trunk/sources/qetdiagrameditor.cpp	2016-10-12 21:32:39 UTC (rev 4737)
+++ trunk/sources/qetdiagrameditor.cpp	2016-10-13 00:08:29 UTC (rev 4738)
@@ -2158,7 +2158,11 @@
 //connect(process, SIGNAL(errorOcurred(int error)), this, SLOT(slot_generateTerminalBlock_error()));
 //process->start("qet_tb_generator");
 
+#ifdef Q_OS_MAC
+success = process->startDetached("/Library/Frameworks/Python.framework/Versions/3.5/bin/qet_tb_generator");
+#else
 success = process->startDetached("qet_tb_generator");
+#endif
 if ( !success ) {
 QMessageBox::warning(0,
 "Error launching plugin", 
@@ -2178,6 +2182,13 @@
 					 "2. pip install qet_generator\n"
 					 ">> Update on Windows\n"
 					 "python -m pip install --upgrade qet_tb_generator\n"
+					 ">> First install on macOSX\n"
+					 "1. Install, if required, python 3.5 or above\n"
+					 "2. Install tkinter with Tcl/Tk\n"
+					 "3. Visit https://qelectrotech.org/forum/viewtopic.php?pid=5674#p5674\n";
+					 "2. pip3 install qet_generator\n"
+					 ">> Update on macOSX\n"
+					 "pip3 install --upgrade qet_tb_generator\n"
 					 );
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/