Subversion Repositories public

Rev

Rev 276 | Rev 278 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 276 Rev 277
Line 8... Line 8...
8
// Author: Andreas Theofilu <andreas@theosys.at>, (C) 2009
8
// Author: Andreas Theofilu <andreas@theosys.at>, (C) 2009
9
//
9
//
10
// Copyright: See COPYING file that comes with this distribution
10
// Copyright: See COPYING file that comes with this distribution
11
//
11
//
12
//
12
//
13
 
-
 
14
#define BOOST_SPIRIT_THREADSAFE
13
#define BOOST_SPIRIT_THREADSAFE
15
#include <QLabel>
14
#include <QLabel>
16
#include <QString>
15
#include <QString>
17
#include <QXmlReader>
16
#include <QXmlReader>
18
#include <QDir>
17
#include <QDir>
Line 159... Line 158...
159
	shapePath = ic.readEntry("MAP", basePath + "/shapefiles");
158
	shapePath = ic.readEntry("MAP", basePath + "/shapefiles");
160
	// Read the shape specific informations
159
	// Read the shape specific informations
161
#ifdef MAPNIK_PLUGINS
160
#ifdef MAPNIK_PLUGINS
162
	pluginPath = QString(MAPNIK_PLUGINS);
161
	pluginPath = QString(MAPNIK_PLUGINS);
163
#else
162
#else
-
 
163
	QDir dir;
164
	// Test some default path
164
	// Test some default path
165
	if (dir.exists(QString("/usr/lib/mapnik/input")))
165
	if (dir.exists(QString("/usr/lib/mapnik/input")))
166
	   pluginPath = sh.readEntry("PluginPath", QString("/usr/lib/mapnik/input"));
166
	   pluginPath = sh.readEntry("PluginPath", QString("/usr/lib/mapnik/input"));
167
	else if (dir.exists(QString("/usr/local/lib/mapnik/input")))
167
	else if (dir.exists(QString("/usr/local/lib/mapnik/input")))
168
	   pluginPath = sh.readEntry("PluginPath", QString("/usr/local/lib/mapnik/input"));
168
	   pluginPath = sh.readEntry("PluginPath", QString("/usr/local/lib/mapnik/input"));