소스 검색

Fix bug in verbose() (need variable's value, not its name)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34282 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 년 전
부모
커밋
d15a9dcaef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/python/grass.py

+ 1 - 1
lib/python/grass.py

@@ -358,7 +358,7 @@ def overwrite():
 
 
 def verbosity():
 def verbosity():
     """Return the verbosity level selected by GRASS_VERBOSE"""
     """Return the verbosity level selected by GRASS_VERBOSE"""
-    vbstr = 'GRASS_VERBOSE'
+    vbstr = os.getenv('GRASS_VERBOSE')
     if vbstr:
     if vbstr:
 	return int(vbstr)
 	return int(vbstr)
     else:
     else: