[GRASS-SVN] r47070 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 9 08:59:44 EDT 2011


Author: martinl
Date: 2011-07-09 05:59:44 -0700 (Sat, 09 Jul 2011)
New Revision: 47070

Modified:
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxGUI/mapdisp: write GRASS_REGION to env file


Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2011-07-09 12:59:10 UTC (rev 47069)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2011-07-09 12:59:44 UTC (rev 47070)
@@ -895,7 +895,8 @@
                     [self.maskfileCmd],
                     ['1.0'])
         
-        os.environ["GRASS_REGION"] = self.SetRegion(windres)
+        region = os.environ["GRASS_REGION"] = self.SetRegion(windres)
+        self._writeEnvFile({'GRASS_REGION' : region})
         currMon = grass.gisenv()['MONITOR']
         if currMon != self.monitor:
             gcmd.RunCommand('g.gisenv',



More information about the grass-commit mailing list