Skip to content

Commit

Permalink
Fix for paths in testqgsapplication
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7937 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Jan 12, 2008
1 parent 4f05135 commit 665cdf6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/src/core/testqgsapplication.cpp
Expand Up @@ -46,10 +46,7 @@ void TestQgsApplication::getPaths()
{
// init QGIS's paths - true means that all path will be inited from prefix
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
#ifdef Q_OS_LINUX
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
#endif

std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
Expand All @@ -60,10 +57,7 @@ void TestQgsApplication::getPaths()
void TestQgsApplication::checkTheme()
{
QgsApplication::setPrefixPath(getQgisPath(), TRUE);
#ifdef Q_OS_LINUX
QgsApplication::setPkgDataPath(getQgisPath() + "/../share/qgis");
QgsApplication::setPluginPath(getQgisPath() + "/../lib/qgis");
#endif

std::cout << "Prefix PATH: " << QgsApplication::prefixPath().toLocal8Bit().data() << std::endl;
std::cout << "Plugin PATH: " << QgsApplication::pluginPath().toLocal8Bit().data() << std::endl;
std::cout << "PkgData PATH: " << QgsApplication::pkgDataPath().toLocal8Bit().data() << std::endl;
Expand Down

0 comments on commit 665cdf6

Please sign in to comment.