Bladeren bron

pythonlib: https://trac.osgeo.org/grass/changeset/48755 - follow naming convetion

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48757 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 jaren geleden
bovenliggende
commit
6c304f29d4
2 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 1 1
      gui/wxpython/gui_modules/gselect.py
  2. 4 4
      lib/python/core.py

+ 1 - 1
gui/wxpython/gui_modules/gselect.py

@@ -329,7 +329,7 @@ class TreeCtrlComboPopup(wx.combo.ComboPopup):
         
         # list of mapsets in current location
         if mapsets is None:
-            mapsets = grass.mapsets(searchPath = True)
+            mapsets = grass.mapsets(search_path = True)
         
         # current mapset first
         if curr_mapset in mapsets and mapsets[0] != curr_mapset:

+ 4 - 4
lib/python/core.py

@@ -629,7 +629,7 @@ def list_grouped(type, check_search_path = True):
     mapset_re = re.compile("<(.*)>")
     result = {}
     if check_search_path:
-        for mapset in mapsets(searchPath = True):
+        for mapset in mapsets(search_path = True):
             result[mapset] = []
     
     mapset = None
@@ -712,7 +712,7 @@ def mlist_grouped(type, pattern = None, check_search_path = True):
     """
     result = {}
     if check_search_path:
-        for mapset in mapsets(searchPath = True):
+        for mapset in mapsets(search_path = True):
             result[mapset] = []
     
     mapset = None
@@ -875,14 +875,14 @@ def float_or_dms(s):
 
 # interface to g.mapsets
 
-def mapsets(searchPath = False):
+def mapsets(search_path = False):
     """!List available mapsets
 
     @param searchPatch True to list mapsets only in search path
     
     @return list of mapsets
     """
-    if searchPath:
+    if search_path:
         flags = 'p'
     else:
         flags = 'l'