Skip to content

Commit

Permalink
Added env var for custom plugin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 26, 2014
1 parent 4c6bf30 commit 82135a7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/core/qgsapplication.cpp
Expand Up @@ -93,7 +93,14 @@ void QgsApplication::init( QString customConfigPath )
{
if ( customConfigPath.isEmpty() )
{
customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
if ( getenv( "QGIS_CUSTOM_CONFIG_PATH" ) )
{
customConfigPath = getenv( "QGIS_CUSTOM_CONFIG_PATH" );
}
else
{
customConfigPath = QString( "%1/.qgis%2/" ).arg( QDir::homePath() ).arg( QGis::QGIS_VERSION_INT / 10000 );
}
}

qRegisterMetaType<QgsGeometry::Error>( "QgsGeometry::Error" );
Expand Down

0 comments on commit 82135a7

Please sign in to comment.