瀏覽代碼

Fix typo when setting GISDBASE

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57558 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 11 年之前
父節點
當前提交
54912fdcc8
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lib/python/pygrass/gis/__init__.py

+ 1 - 2
lib/python/pygrass/gis/__init__.py

@@ -50,7 +50,6 @@ CHECK_IS = {"GISBASE": libgis.G_is_gisbase,
 
 
 
 
 def _check(value, path, type):
 def _check(value, path, type):
-    #import pdb; pdb.set_trace()
     if value and CHECK_IS[type](join(path, value)):
     if value and CHECK_IS[type](join(path, value)):
         return value
         return value
     elif value is '':
     elif value is '':
@@ -65,7 +64,7 @@ def set_current_mapset(mapset, location=None, gisdbase=None):
     if location:
     if location:
         libgis.G_setenv('LOCATION_NAME', location)
         libgis.G_setenv('LOCATION_NAME', location)
     if gisdbase:
     if gisdbase:
-        libgis.G_setenv('GISDBASEE', gisdbase)
+        libgis.G_setenv('GISDBASE', gisdbase)
 
 
 
 
 def make_mapset(mapset, location=None, gisdbase=None):
 def make_mapset(mapset, location=None, gisdbase=None):