Skip to content
Permalink
Browse files
Use relative path to find resources
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 8bdca7e1770dac2864ebe7a271710e9f53fa7745
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgsvectorfilewriter.cpp
@@ -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;

0 comments on commit 8bdca7e

Please sign in to comment.