[GRASS-SVN] r42290 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 18 06:58:55 EDT 2010


Author: martinl
Date: 2010-05-18 06:58:55 -0400 (Tue, 18 May 2010)
New Revision: 42290

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
Log:
wxGUI: force GRASS_MESSAGE_FORMAT to 'gui'


Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-05-18 10:52:52 UTC (rev 42289)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2010-05-18 10:58:55 UTC (rev 42290)
@@ -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()
             
@@ -817,7 +818,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