if sys.platform == "linux2":sys.stdout = open('/tmp/InstrumentationBrowser.log', 'w')sys.stderr = sys.stdout
$ InstrumentationBrowser ~/BB.dat &[2] 35873[1] Done InstrumentationBrowser ~/BB.dat$(InstrumentationBrowser:35875): Gtk-WARNING **: 11:43:08.556: Could not load a pixbuf from icon theme.This may indicate that pixbuf loaders or the mime database could not be found.$
$ InstrumentationBrowser ~/BB.dat &[2] 35873[1] Done InstrumentationBrowser ~/BB.dat$(InstrumentationBrowser:35875): Gtk-WARNING **: 11:43:08.556: Could not load a pixbuf from icon theme.This may indicate that pixbuf loaders or the mime database could not be found.
Obviously this warning stems from a C library, which writes to
the processes stderr I assume.
sys.stderr is nit the processes stderr, as you can verify with
the example below. Thus you need to find a way to change the
processes stderr. This is not related to PyInstaller. Anyway if
you solve the puzzle blow, please post a solution.
import sys
import subprocess
with open("/tmp/x.log", "w") as sys.stderr:
subprocess.call("echo foo >&2", shell=True)
Goebel Consult, Landshut
http://www.goebel-consult.de
Blog:
https://www.goe-con.de/blog/e-mails-weiterhin-verschlusseln
Kolumne:
https://www.goe-con.de/hartmut-goebel/cissp-gefluester/2012-02-bring-your-own-life-glosse