Skip to content
Permalink
Browse files

Fix to make mapserver export work under OS X

git-svn-id: http://svn.osgeo.org/qgis/trunk@6252 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman
gsherman committed Dec 15, 2006
1 parent 1907fd6 commit 028db9b88d731d983ebfa7995886d3f6da2f5b2d
Showing with 5 additions and 2 deletions.
  1. +5 −2 tools/mapserver_export/qgsmapserverexport.cpp
@@ -111,9 +111,12 @@ void QgsMapserverExport::on_buttonOk_clicked()
//TODO Need to append the path to the qgis python files using the path to the
// Python files in the QGIS install directory
PyRun_SimpleString("import sys");
#if defined(Q_WS_MACX) || defined(Q_WS_WIN32)
QString prefixPath = QApplication::applicationDirPath();
QString dataPath = prefixPath + QString("/share/qgis");
// Setup up path to the python script directory based on platform
#ifdef Q_WS_MACX
QString dataPath = prefixPath + "/../../../../share/qgis";
#elif WIN32
QString dataPath = prefixPath + "/share/qgis";
#else
QString dataPath ( PKGDATAPATH );
#endif

0 comments on commit 028db9b

Please sign in to comment.
You can’t perform that action at this time.