[GRASS-SVN] r42385 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 29 15:21:12 EDT 2010


Author: martinl
Date: 2010-05-29 15:21:11 -0400 (Sat, 29 May 2010)
New Revision: 42385

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/debug.py
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
Log:
wxGUI: force flushing debug messages (required on MS Windows)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/debug.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/debug.py	2010-05-29 17:42:47 UTC (rev 42384)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/debug.py	2010-05-29 19:21:11 UTC (rev 42385)
@@ -51,7 +51,8 @@
         self._update_level()
         if self.debuglevel > 0 and level > 0 and level <= self.debuglevel:
             print >> sys.stderr, "GUI D%d/%d: %s" % (level, self.debuglevel, message)
-
+            sys.stderr.flush() # force flush (required for MS Windows)
+        
     def get_level(self):
         """Return current GUI debug level"""
         return self.debuglevel

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2010-05-29 17:42:47 UTC (rev 42384)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2010-05-29 19:21:11 UTC (rev 42385)
@@ -317,7 +317,7 @@
     def __init__ (self, cmd, stdin=None,
                   verbose=None, wait=True, rerr=False,
                   stdout=None, stderr=None):
-
+        Debug.msg(1, "gcmd.Command(): %s" % cmd)
         self.cmd = cmd
         self.stderr = stderr
 	



More information about the grass-commit mailing list