[GRASS-SVN] r38468 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jul 20 00:04:33 EDT 2009
Author: glynn
Date: 2009-07-20 00:04:32 -0400 (Mon, 20 Jul 2009)
New Revision: 38468
Modified:
grass/trunk/lib/init/grass.py
Log:
Allow for trailing slash in non-interactive startup
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2009-07-19 16:19:42 UTC (rev 38467)
+++ grass/trunk/lib/init/grass.py 2009-07-20 04:04:32 UTC (rev 38468)
@@ -414,6 +414,8 @@
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
More information about the grass-commit
mailing list