[QGIS Commit] r10134 - trunk/qgis/src/providers/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Feb 8 13:30:02 EST 2009


Author: jef
Date: 2009-02-08 13:30:02 -0500 (Sun, 08 Feb 2009)
New Revision: 10134

Modified:
   trunk/qgis/src/providers/grass/qgsgrass.cpp
Log:
prefer WINGISBASE on windows

Modified: trunk/qgis/src/providers/grass/qgsgrass.cpp
===================================================================
--- trunk/qgis/src/providers/grass/qgsgrass.cpp	2009-02-08 18:24:24 UTC (rev 10133)
+++ trunk/qgis/src/providers/grass/qgsgrass.cpp	2009-02-08 18:30:02 UTC (rev 10134)
@@ -89,7 +89,12 @@
   // 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



More information about the QGIS-commit mailing list