Skip to content
Browse files
Add path so Mac qgispython lib can be found.
git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed May 31, 2008
1 parent 350a16c commit adada4a65f5e48eae4a66a68686f91d61c35ce6a
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgisapp.cpp
@@ -360,7 +360,11 @@ static void customSrsValidation_(QgsSpatialRefSys* srs)
mSplash->showMessage(tr("Starting Python"), Qt::AlignHCenter | Qt::AlignBottom);
// try to load python support
QLibrary pythonlib("qgispython");
QString pythonlibName("qgispython");
#ifdef Q_WS_MAC
pythonlibName.prepend(QgsApplication::prefixPath() + "/lib/");
QLibrary pythonlib(pythonlibName);
// It's necessary to set these two load hints, otherwise Python library won't work correctly
// see
pythonlib.setLoadHints(QLibrary::ResolveAllSymbolsHint | QLibrary::ExportExternalSymbolsHint);

0 comments on commit adada4a

Please sign in to comment.