[GRASS-SVN] r33756 - grass/branches/develbranch_6/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 8 06:31:44 EDT 2008
Author: martinl
Date: 2008-10-08 06:31:43 -0400 (Wed, 08 Oct 2008)
New Revision: 33756
Modified:
grass/branches/develbranch_6/gui/wxpython/gis_set.py
Log:
wxGUI: fix welcome screen on first run (no .grassrcX available)
Modified: grass/branches/develbranch_6/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gis_set.py 2008-10-08 08:33:20 UTC (rev 33755)
+++ grass/branches/develbranch_6/gui/wxpython/gis_set.py 2008-10-08 10:31:43 UTC (rev 33756)
@@ -24,6 +24,7 @@
import sys
import glob
import shutil
+import copy
### i18N
import gettext
@@ -566,7 +567,7 @@
'location=%s' % locationName,
'gisdbase=%s' % self.gisdbase],
stderr=None)
-
+
for line in mapsets.ReadStdOutput():
self.listOfMapsetsSelectable += line.split(' ')
except gcmd.CmdError:
@@ -576,7 +577,9 @@
"set=LOCATION_NAME=%s" % locationName])
gcmd.Command(["g.gisenv",
"set=MAPSET=PERMANENT"])
-
+ # first run only
+ self.listOfMapsetsSelectable = copy.copy(self.listOfMapsets)
+
disabled = []
idx = 0
for mapset in self.listOfMapsets:
More information about the grass-commit
mailing list