Browse Source

grass.py: catch empty GISBASE env var

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74475 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 6 years ago
parent
commit
b8fb7070e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/init/grass.py

+ 1 - 1
lib/init/grass.py

@@ -136,7 +136,7 @@ else:
 # ----+- 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