|
@@ -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(accessible = True):
|
|
|
+ for mapset in mapsets(searchPath = 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(accessible = True):
|
|
|
+ for mapset in mapsets(searchPath = True):
|
|
|
result[mapset] = []
|
|
|
|
|
|
mapset = None
|
|
@@ -875,14 +875,14 @@ def float_or_dms(s):
|
|
|
|
|
|
# interface to g.mapsets
|
|
|
|
|
|
-def mapsets(accessible = True):
|
|
|
- """!List accessible mapsets (mapsets in search path)
|
|
|
-
|
|
|
- @param accessible False to list all mapsets in the location
|
|
|
+def mapsets(searchPath = False):
|
|
|
+ """!List available mapsets
|
|
|
|
|
|
+ @param searchPatch True to list mapsets only in search path
|
|
|
+
|
|
|
@return list of mapsets
|
|
|
"""
|
|
|
- if accessible:
|
|
|
+ if searchPath:
|
|
|
flags = 'p'
|
|
|
else:
|
|
|
flags = 'l'
|
|
@@ -892,7 +892,7 @@ def mapsets(accessible = True):
|
|
|
quiet = True)
|
|
|
if not mapsets:
|
|
|
fatal(_("Unable to list mapsets"))
|
|
|
-
|
|
|
+
|
|
|
return mapsets.splitlines()
|
|
|
|
|
|
# interface to `g.proj -c`
|