mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Add path so Mac qgispython lib can be found.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8563 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
83fe40ece3
commit
44873c5e30
@ -360,7 +360,11 @@ static void customSrsValidation_(QgsSpatialRefSys* srs)
|
||||
mSplash->showMessage(tr("Starting Python"), Qt::AlignHCenter | Qt::AlignBottom);
|
||||
qApp->processEvents();
|
||||
// try to load python support
|
||||
QLibrary pythonlib("qgispython");
|
||||
QString pythonlibName("qgispython");
|
||||
#ifdef Q_WS_MAC
|
||||
pythonlibName.prepend(QgsApplication::prefixPath() + "/lib/");
|
||||
#endif
|
||||
QLibrary pythonlib(pythonlibName);
|
||||
// It's necessary to set these two load hints, otherwise Python library won't work correctly
|
||||
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2
|
||||
pythonlib.setLoadHints(QLibrary::ResolveAllSymbolsHint | QLibrary::ExportExternalSymbolsHint);
|
||||
|
Loading…
x
Reference in New Issue
Block a user