Skip to content

Commit

Permalink
[qgis_help] Detect proper resource path when running from build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 13, 2013
1 parent 27183d9 commit 30b9fed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
Expand Down Expand Up @@ -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/";
Expand Down

0 comments on commit 30b9fed

Please sign in to comment.