소스 검색

Allow for trailing slash in non-interactive startup

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38468 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 년 전
부모
커밋
4fd00217f1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/init/grass.py

+ 2 - 0
lib/init/grass.py

@@ -414,6 +414,8 @@ def non_interactive(arg):
 	    l = os.path.abspath(l)
 
 	l, mapset = os.path.split(l)
+	if not mapset:
+	    l, mapset = os.path.split(l)
 	l, location_name = os.path.split(l)
 	gisdbase = l