[GRASS-SVN] r42291 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 18 07:02:41 EDT 2010


Author: martinl
Date: 2010-05-18 07:02:40 -0400 (Tue, 18 May 2010)
New Revision: 42291

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: force GRASS_MESSAGE_FORMAT to 'gui'
(merge r42290 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2010-05-18 10:58:55 UTC (rev 42290)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/goutput.py	2010-05-18 11:02:40 UTC (rev 42291)
@@ -81,6 +81,7 @@
         CmdThread.requestId = id
         
     def run(self):
+        os.environ['GRASS_MESSAGE_FORMAT'] = 'gui'
         while True:
             requestId, callable, onDone, args, kwds = self.requestQ.get()
             
@@ -816,7 +817,7 @@
         for line in s.splitlines():
             if len(line) == 0:
                 continue
-
+            
             if 'GRASS_INFO_PERCENT' in line:
                 value = int(line.rsplit(':', 1)[1].strip())
                 if value >= 0 and value < 100:



More information about the grass-commit mailing list