[GRASS-SVN] r45822 - grass/trunk/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Apr 1 16:08:25 EDT 2011
Author: martinl
Date: 2011-04-01 13:08:25 -0700 (Fri, 01 Apr 2011)
New Revision: 45822
Modified:
grass/trunk/gui/wxpython/gis_set.py
Log:
#1340 (wxGUI uses improper .grassrc syntax and may cause .grassrc file
corruption)
(merge r45821 from devbr6)
Modified: grass/trunk/gui/wxpython/gis_set.py
===================================================================
--- grass/trunk/gui/wxpython/gis_set.py 2011-04-01 20:04:14 UTC (rev 45821)
+++ grass/trunk/gui/wxpython/gis_set.py 2011-04-01 20:08:25 UTC (rev 45822)
@@ -394,7 +394,7 @@
grassrc[key.strip()] = utils.DecodeString(val.strip())
finally:
rc.close()
-
+
return grassrc
def GetRCValue(self, value):
@@ -609,11 +609,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