Skip to content

Commit adada4a

Browse files
author
telwertowski
committedMay 31, 2008

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)
Please sign in to comment.