File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,7 @@ void TestQgsApplication::getPaths()
46
46
{
47
47
// init QGIS's paths - true means that all path will be inited from prefix
48
48
QgsApplication::setPrefixPath (getQgisPath (), TRUE );
49
- #ifdef Q_OS_LINUX
50
- QgsApplication::setPkgDataPath (getQgisPath () + " /../share/qgis" );
51
- QgsApplication::setPluginPath (getQgisPath () + " /../lib/qgis" );
52
- #endif
49
+
53
50
std::cout << " Prefix PATH: " << QgsApplication::prefixPath ().toLocal8Bit ().data () << std::endl;
54
51
std::cout << " Plugin PATH: " << QgsApplication::pluginPath ().toLocal8Bit ().data () << std::endl;
55
52
std::cout << " PkgData PATH: " << QgsApplication::pkgDataPath ().toLocal8Bit ().data () << std::endl;
@@ -60,10 +57,7 @@ void TestQgsApplication::getPaths()
60
57
void TestQgsApplication::checkTheme ()
61
58
{
62
59
QgsApplication::setPrefixPath (getQgisPath (), TRUE );
63
- #ifdef Q_OS_LINUX
64
- QgsApplication::setPkgDataPath (getQgisPath () + " /../share/qgis" );
65
- QgsApplication::setPluginPath (getQgisPath () + " /../lib/qgis" );
66
- #endif
60
+
67
61
std::cout << " Prefix PATH: " << QgsApplication::prefixPath ().toLocal8Bit ().data () << std::endl;
68
62
std::cout << " Plugin PATH: " << QgsApplication::pluginPath ().toLocal8Bit ().data () << std::endl;
69
63
std::cout << " PkgData PATH: " << QgsApplication::pkgDataPath ().toLocal8Bit ().data () << std::endl;
You can’t perform that action at this time.
0 commit comments