mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
prefer WINGISBASE on windows
git-svn-id: http://svn.osgeo.org/qgis/trunk@10134 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
42ca958bb9
commit
62d966f2c7
@ -89,7 +89,12 @@ void GRASS_EXPORT QgsGrass::init( void )
|
||||
// This is set when QGIS is run from within GRASS
|
||||
// or when set explicitly by the user.
|
||||
// This value should always take precedence.
|
||||
#if WIN32
|
||||
QString gisBase = getenv( "WINGISBASE" ) ? getenv("WINGISBASE") : getenv("GISBASE");
|
||||
gisBase = getShortPath( gisBase );
|
||||
#else
|
||||
QString gisBase = getenv( "GISBASE" );
|
||||
#endif
|
||||
#ifdef QGISDEBUG
|
||||
qDebug( "%s:%d GRASS gisBase from GISBASE env var is: %s", __FILE__, __LINE__, gisBase.toAscii().constData() );
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user