Skip to content

Commit 44873c5

Browse files
author
telwertowski
committed
Add path so Mac qgispython lib can be found.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8563 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 83fe40e commit 44873c5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,11 @@ static void customSrsValidation_(QgsSpatialRefSys* srs)
360360
mSplash->showMessage(tr("Starting Python"), Qt::AlignHCenter | Qt::AlignBottom);
361361
qApp->processEvents();
362362
// try to load python support
363-
QLibrary pythonlib("qgispython");
363+
QString pythonlibName("qgispython");
364+
#ifdef Q_WS_MAC
365+
pythonlibName.prepend(QgsApplication::prefixPath() + "/lib/");
366+
#endif
367+
QLibrary pythonlib(pythonlibName);
364368
// It's necessary to set these two load hints, otherwise Python library won't work correctly
365369
// see http://lists.kde.org/?l=pykde&m=117190116820758&w=2
366370
pythonlib.setLoadHints(QLibrary::ResolveAllSymbolsHint | QLibrary::ExportExternalSymbolsHint);

0 commit comments

Comments
 (0)