[GRASS-SVN] r45128 - grass/trunk/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 21 05:34:33 EST 2011


Author: martinl
Date: 2011-01-21 02:34:33 -0800 (Fri, 21 Jan 2011)
New Revision: 45128

Modified:
   grass/trunk/lib/init/grass.py
Log:
fix typo in starting script (create new mapset)

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2011-01-21 10:27:34 UTC (rev 45127)
+++ grass/trunk/lib/init/grass.py	2011-01-21 10:34:33 UTC (rev 45128)
@@ -459,7 +459,7 @@
 		    if not os.access(os.path.join(os.path.join(gisdbase, location_name, "PERMANENT", "DEFAULT_WIND")), os.F_OK):
 			fatal(_("The location <%s> does not exist. Please create it first.") % location_name)
 		    else:
-			os.mkdirs(location)
+			os.mkdir(location)
 			# copy PERMANENT/DEFAULT_WIND to <mapset>/WIND
 			s = readfile(os.path.join(gisdbase, location_name, "PERMANENT", "DEFAULT_WIND"))
 			writefile(os.path.join(location, "WIND"), s)



More information about the grass-commit mailing list