[GRASS-SVN] r45829 - grass/branches/releasebranch_6_4/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Apr 3 03:41:40 EDT 2011
Author: martinl
Date: 2011-04-03 00:41:39 -0700 (Sun, 03 Apr 2011)
New Revision: 45829
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
Log:
#1340 (wxGUI uses improper .grassrc syntax and may cause .grassrc file
corruption)
(merge from devbr6)
Modified: grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py 2011-04-03 05:05:07 UTC (rev 45828)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gis_set.py 2011-04-03 07:41:39 UTC (rev 45829)
@@ -393,7 +393,7 @@
grassrc[key.strip()] = val.strip()
finally:
rc.close()
-
+
return grassrc
def GetRCValue(self, value):
@@ -608,11 +608,11 @@
self.listOfMapsetsSelectable += line.split(' ')
except:
gcmd.RunCommand("g.gisenv",
- set = "GISDBASE = %s" % self.gisdbase)
+ set = "GISDBASE=%s" % self.gisdbase)
gcmd.RunCommand("g.gisenv",
- set = "LOCATION_NAME = %s" % locationName)
+ set = "LOCATION_NAME=%s" % locationName)
gcmd.RunCommand("g.gisenv",
- set = "MAPSET = PERMANENT")
+ set = "MAPSET=PERMANENT")
# first run only
self.listOfMapsetsSelectable = copy.copy(self.listOfMapsets)
@@ -737,13 +737,13 @@
def OnStart(self, event):
"""'Start GRASS' button clicked"""
gcmd.RunCommand("g.gisenv",
- set = "GISDBASE = %s" % \
+ set = "GISDBASE=%s" % \
self.tgisdbase.GetValue())
gcmd.RunCommand("g.gisenv",
- set = "LOCATION_NAME = %s" % \
+ set = "LOCATION_NAME=%s" % \
self.listOfLocations[self.lblocations.GetSelection()])
gcmd.RunCommand("g.gisenv",
- set = "MAPSET = %s" % \
+ set = "MAPSET=%s" % \
self.listOfMapsets[self.lbmapsets.GetSelection()])
self.Destroy()
More information about the grass-commit
mailing list