Skip to content
Permalink
Browse files

[qgis_help] Detect proper resource path when running from build dir

  • Loading branch information
m-kuhn committed May 13, 2013
1 parent 27183d9 commit 30b9fedc6adff91be11183c3a1ee3338ac6e0afa
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgsapplication.cpp
@@ -94,7 +94,7 @@ void QgsApplication::init( QString customConfigPath )
// check if QGIS is run from build directory (not the install directory)
QFile f;
// "/../../.." is for Mac bundled app in build directory
foreach ( QString path, QStringList() << "" << "/.." << "/bin" << "/../../.." )
foreach ( QString path, QStringList() << "" << "/.." << "/bin" << "/../../.." << "/../../bin" )
{
f.setFileName( prefixPath + path + "/path.txt" );
if ( f.exists() )
@@ -319,10 +319,12 @@ const QString QgsApplication::pluginPath()
{
return ABISYM( mPluginPath );
}

const QString QgsApplication::pkgDataPath()
{
return ABISYM( mPkgDataPath );
}

const QString QgsApplication::defaultThemePath()
{
return ":/images/themes/default/";

0 comments on commit 30b9fed

Please sign in to comment.
You can’t perform that action at this time.