Skip to content

Commit

Permalink
Fix compile issue on mac
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5800 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 10, 2006
1 parent ce82286 commit 4276b81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/mapserver_export/qgsmapserverexport.cpp
Expand Up @@ -28,6 +28,7 @@ email : sherman at mrcc.com
#include <qregexp.h>
#include <qstring.h>
#include <QWidget>
#include <QApplication>
#include "qgsmapserverexport.h"


Expand Down Expand Up @@ -109,7 +110,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");
#else
QString dataPath ( PKGDATAPATH );
#endif
dataPath = dataPath.trimmed();
QString scriptDir = dataPath + QDir::separator() + "python";
qDebug(scriptDir);
Expand Down

0 comments on commit 4276b81

Please sign in to comment.