Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Dec 15, 2006
1 parent 1907fd6 commit 028db9b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/mapserver_export/qgsmapserverexport.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 028db9b

Please sign in to comment.