<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 10, 2014 at 4:41 PM, <span dir="ltr"><<a href="mailto:svn_grass@osgeo.org" target="_blank">svn_grass@osgeo.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Author: martinl<br>
Date: 2014-12-10 13:41:10 -0800 (Wed, 10 Dec 2014)<br>
New Revision: 63475<br>
<br>
Modified:<br>
grass/trunk/gui/wxpython/mapdisp/main.py<br>
Log:<br>
d.mon wx0: don't call g.gisenv in the watcher (it's too much invasive) - TODO: find better solution<br>
<br>
Modified: grass/trunk/gui/wxpython/mapdisp/main.py<br>
===================================================================<br>
--- grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-10 21:17:38 UTC (rev 63474)<br>
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-10 21:41:10 UTC (rev 63475)<br>
@@ -412,14 +412,19 @@<br>
"""Redraw, if new layer appears (check's timestamp of<br>
cmdfile)<br>
"""<br>
- try:<br>
- # GISBASE and other sytem enviromental variables can not be used<br>
+ ###<br>
+ ### TODO: fint better solution<br>
+ ###<br>
+ ### the check bellow disabled, it's invasive to call g.gisenv<br>
+ ### in the watcher...<br>
+ # try:<br>
+ # GISBASE and other system enviromental variables can not be used<br>
# since the process inherited them from GRASS<br>
# raises exception when vaiable does not exists<br>
- grass.gisenv()['GISDBASE']<br>
- except KeyError:<br>
- self.timer.Stop()<br>
- return<br>
+ ### grass.gisenv()['GISDBASE']<br>
+ # except KeyError:<br>
+ # self.timer.Stop()<br>
+ # return<br>
<br>
# todo: events<br>
try:<br>
<br></blockquote><div>Just to clarify, the purpose of the code was just to check if GRASS is still running and stop redrawing if it is not? I'm not sure what is the behavior now, perhaps some errors somewhere. But the main GUI also does not check if GRASS is running and just throws some errors, so maybe the need for a better solution is not so big and/or it applies to all GUI applications (d.mon wx*, g.gui, g.gui.*).<br><br><a href="http://trac.osgeo.org/grass/changeset/63475">http://trac.osgeo.org/grass/changeset/63475</a><br><a href="http://trac.osgeo.org/grass/changeset/63476">http://trac.osgeo.org/grass/changeset/63476</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
grass-commit mailing list<br>
<a href="mailto:grass-commit@lists.osgeo.org">grass-commit@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-commit" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-commit</a><br>
</blockquote></div><br></div></div>