gedit 'External Tools' plugin hashlib weirdness
joel.hedlund at gmail.com
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/__init__.py:
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