Browse Source

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 years ago
parent
commit
4fd00217f1
1 changed files with 2 additions and 0 deletions
  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