Explorar el Código

t.register: assume current mapset if not specified (as for other t.*)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66278 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler hace 9 años
padre
commit
3ccae5bb94
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      lib/python/temporal/register.py

+ 2 - 0
lib/python/temporal/register.py

@@ -91,6 +91,8 @@ def register_maps_in_space_time_dataset(
 
     # The name of the space time dataset is optional
     if name:
+        if name.find("@") <= 0:
+            name = name + "@" + mapset
         sp = open_old_stds(name, type, dbif)
 
         if sp.is_time_relative() and (start or end) and not unit: