Skip to content
Permalink
Browse files
Fix compile issue on mac
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 4276b812940e278a9929953886bca6caccf033ae
Showing with 6 additions and 0 deletions.
  1. +6 −0 tools/mapserver_export/qgsmapserverexport.cpp
@@ -28,6 +28,7 @@ email : sherman at mrcc.com
#include <qregexp.h>
#include <qstring.h>
#include <QWidget>
#include <QApplication>
#include "qgsmapserverexport.h"


@@ -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);

0 comments on commit 4276b81

Please sign in to comment.