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

@@ -48,6 +48,13 @@ 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())