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