Bläddra i källkod

d.mon wx0: don't call g.gisenv in the watcher (it's too much invasive) - TODO: find better solution

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63475 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 år sedan
förälder
incheckning
a2dab2d77c
1 ändrade filer med 11 tillägg och 6 borttagningar
  1. 11 6
      gui/wxpython/mapdisp/main.py

+ 11 - 6
gui/wxpython/mapdisp/main.py

@@ -412,14 +412,19 @@ class MapApp(wx.App):
         """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: