Przeglądaj źródła

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 lat temu
rodzic
commit
7c506f0410
1 zmienionych plików z 2 dodań i 1 usunięć
  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
         CmdThread.requestId = id
         
         
     def run(self):
     def run(self):
+        os.environ['GRASS_MESSAGE_FORMAT'] = 'gui'
         while True:
         while True:
             requestId, callable, onDone, args, kwds = self.requestQ.get()
             requestId, callable, onDone, args, kwds = self.requestQ.get()
             
             
@@ -817,7 +818,7 @@ class GMStderr:
         for line in s.splitlines():
         for line in s.splitlines():
             if len(line) == 0:
             if len(line) == 0:
                 continue
                 continue
-
+            
             if 'GRASS_INFO_PERCENT' in line:
             if 'GRASS_INFO_PERCENT' in line:
                 value = int(line.rsplit(':', 1)[1].strip())
                 value = int(line.rsplit(':', 1)[1].strip())
                 if value >= 0 and value < 100:
                 if value >= 0 and value < 100: