[GRASS-SVN] r63475 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 10 13:41:10 PST 2014


Author: martinl
Date: 2014-12-10 13:41:10 -0800 (Wed, 10 Dec 2014)
New Revision: 63475

Modified:
   grass/trunk/gui/wxpython/mapdisp/main.py
Log:
d.mon wx0: don't call g.gisenv in the watcher (it's too much invasive) - TODO: find better solution

Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py	2014-12-10 21:17:38 UTC (rev 63474)
+++ grass/trunk/gui/wxpython/mapdisp/main.py	2014-12-10 21:41:10 UTC (rev 63475)
@@ -412,14 +412,19 @@
         """Redraw, if new layer appears (check's timestamp of
         cmdfile)
         """
-        try:
-            # GISBASE and other sytem enviromental variables can not be used
+        ###
+        ### TODO: fint better solution
+        ###
+        ### the check bellow disabled, it's invasive to call g.gisenv
+        ### in the watcher...
+        # try:
+            # GISBASE and other system 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
+            ### grass.gisenv()['GISDBASE']
+        # except KeyError:
+        #    self.timer.Stop()
+        #    return
         
         # todo: events
         try:



More information about the grass-commit mailing list