[GRASS-SVN] r74475 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 9 03:04:24 PDT 2019


Author: neteler
Date: 2019-05-09 03:04:24 -0700 (Thu, 09 May 2019)
New Revision: 74475

Modified:
   grass/trunk/lib/init/grass.py
Log:
grass.py: catch empty GISBASE env var

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2019-05-08 10:33:44 UTC (rev 74474)
+++ grass/trunk/lib/init/grass.py	2019-05-09 10:04:24 UTC (rev 74475)
@@ -136,7 +136,7 @@
 # ----+- Python 3 compatibility end -+----
 
 # Variables substituted during build process
-if 'GISBASE' in os.environ:
+if 'GISBASE' in os.environ and len(os.getenv('GISBASE')) > 0:
     # TODO: should this be something like GRASS_PATH?
     # GISBASE marks complete runtime, so no need to get it here when
     # setting it up, possible scenario: existing runtime and starting



More information about the grass-commit mailing list