gedit 'External Tools' plugin hashlib weirdness

Joel Hedlund joel.hedlund at
Thu Sep 30 14:26:45 CEST 2010

How do I catch output to stdout/stderr when launching from a launcher?

I added this to /usr/lib/gedit-2/plugins/externaltools/

import sys
f = open('/tmp/eraseme.txt', 'w')
print >> f, "The executable is %r." % sys.executable

In both cases (launcher/termial) the contents of eraseme.txt are:
The executable is '/usr/bin/python'.

More information about the Python-list mailing list