We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83fe40e commit 44873c5Copy full SHA for 44873c5
src/app/qgisapp.cpp
@@ -360,7 +360,11 @@ static void customSrsValidation_(QgsSpatialRefSys* srs)
360
mSplash->showMessage(tr("Starting Python"), Qt::AlignHCenter | Qt::AlignBottom);
361
qApp->processEvents();
362
// try to load python support
363
- QLibrary pythonlib("qgispython");
+ QString pythonlibName("qgispython");
364
+#ifdef Q_WS_MAC
365
+ pythonlibName.prepend(QgsApplication::prefixPath() + "/lib/");
366
+#endif
367
+ QLibrary pythonlib(pythonlibName);
368
// It's necessary to set these two load hints, otherwise Python library won't work correctly
369
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2
370
pythonlib.setLoadHints(QLibrary::ResolveAllSymbolsHint | QLibrary::ExportExternalSymbolsHint);
0 commit comments