[GRASS-SVN] r51829 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 27 08:03:23 PDT 2012
Author: annakrat
Date: 2012-05-27 08:03:22 -0700 (Sun, 27 May 2012)
New Revision: 51829
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
Log:
wxGUI: dmon does not report errors after exiting GRASS (author Vaclav Petras)
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2012-05-27 14:56:44 UTC (rev 51828)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2012-05-27 15:03:22 UTC (rev 51829)
@@ -260,6 +260,15 @@
"""!Redraw, if new layer appears (check's timestamp of
cmdfile)
"""
+ try:
+ # GISBASE and other sytem enviromental variables can not be used
+ # since the process inherited them from GRASS
+ # raises exception when vaiable does not exists
+ grass.gisenv()['GISDBASE']
+ except KeyError:
+ self.timer.Stop()
+ return
+
# todo: events
if os.path.getmtime(monFile['cmd']) > self.cmdTimeStamp:
self.timer.Stop()
More information about the grass-commit
mailing list