Browse Source

wxGUI: force GRASS_MESSAGE_FORMAT to 'gui'

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42290 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 15 years ago
parent
commit
7c506f0410
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/gui_modules/goutput.py

+ 2 - 1
gui/wxpython/gui_modules/goutput.py

@@ -81,6 +81,7 @@ class CmdThread(threading.Thread):
         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 @@ class GMStderr:
         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: