Skip to content

Commit 665cdf6

Browse files
author
homann
committed
Fix for paths in testqgsapplication
git-svn-id: http://svn.osgeo.org/qgis/trunk@7937 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4f05135 commit 665cdf6

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

tests/src/core/testqgsapplication.cpp

+2-8
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ void TestQgsApplication::getPaths()
4646
{
4747
// init QGIS's paths - true means that all path will be inited from prefix
4848
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
49-
#ifdef Q_OS_LINUX
50-
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
51-
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
52-
#endif
49+
5350
std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
5451
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
5552
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
@@ -60,10 +57,7 @@ void TestQgsApplication::getPaths()
6057
void TestQgsApplication::checkTheme()
6158
{
6259
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
63-
#ifdef Q_OS_LINUX
64-
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
65-
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
66-
#endif
60+
6761
std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
6862
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
6963
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;

0 commit comments

Comments
 (0)