Skip to content
Permalink
Browse files
Fix compile issue on mac
git-svn-id: http://svn.osgeo.org/qgis/trunk@5800 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 10, 2006
1 parent 72dc071 commit e2535d79b187b9826212ed8f8d0a5dbf0c2e2401
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 e2535d7

Please sign in to comment.