소스 검색

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 년 전
부모
커밋
b8fb7070e5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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