Skip to content

Commit

Permalink
Use relative path to find resources
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7191 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 12, 2007
1 parent e71ec26 commit 8bdca7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/core/testqgsvectorfilewriter.cpp
Expand Up @@ -26,6 +26,8 @@ class TestQgsVectorFileWriter: public QObject
// init QGIS's paths - true means that all path will be inited from prefix
QString qgisPath = QCoreApplication::applicationDirPath ();
QgsApplication::setPrefixPath(qgisPath, TRUE);
QgsApplication::setPkgDataPath(QgsApplication::applicationDirPath() +
"/../../../resources/");

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

0 comments on commit 8bdca7e

Please sign in to comment.