소스 검색

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 9 년 전
부모
커밋
3ccae5bb94
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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: