[Skencil-commits] r798 - skencil/branches/skencil-0.6/src/Sketch/Base

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Feb 6 20:38:46 CET 2011


Author: bh
Date: 2011-02-06 20:38:45 +0100 (Sun, 06 Feb 2011)
New Revision: 798

Modified:
   skencil/branches/skencil-0.6/src/Sketch/Base/gtkutils.py
Log:
Do not suppress stderr of the pygtk sub-processes.
The subprocesses should only print anything to stderr is something
fails, and in that case the output is needed to determine what went
wrong.


Modified: skencil/branches/skencil-0.6/src/Sketch/Base/gtkutils.py
===================================================================
--- skencil/branches/skencil-0.6/src/Sketch/Base/gtkutils.py	2011-02-06 19:21:21 UTC (rev 797)
+++ skencil/branches/skencil-0.6/src/Sketch/Base/gtkutils.py	2011-02-06 19:38:45 UTC (rev 798)
@@ -42,8 +42,7 @@
         tmpfile = NamedTemporaryFile()
         command = "import gtk;w = gtk.Window();w.realize();"
         command += "style=w.get_style(); print style.font_desc.to_string();"
-        if os.system('python -c "%s" >%s 2>/dev/null'
-                     % (command, tmpfile.name)):
+        if os.system('python -c "%s" >%s' % (command, tmpfile.name)):
             raise Exception
 
         font = tmpfile.readline().strip()
@@ -235,8 +234,7 @@
             " style.bg[gtk.STATE_SELECTED].to_string()," + \
             " style.bg[gtk.STATE_INSENSITIVE].to_string();"
 
-        if os.system('python -c "%s" >%s 2>/dev/null'
-                     % (command, tmpfile.name)):
+        if os.system('python -c "%s" >%s' % (command, tmpfile.name)):
             raise Exception
 
         for type in ["base", "text", "fg", "bg"]:



More information about the Skencil-commits mailing list