Re: gedit 'External Tools' plugin hashlib weirdness

2010-10-01 Thread Joel Hedlund
I apparently replied to soon. Removing /usr/lib/python2.4 from PYTHONPATH did not solve the problem. I think I may have had a launcher-started gedit running somewhere in the background while testing. Any subsequent terminal-launches would then just create new windows for the existing (non-bugged)

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
On Sep 30, 3:40 pm, Peter Otten <__pete...@web.de> wrote: > I'm surprised that /usr/lib/python2.4 doesn't appear in the traceback. That certainly would have been useful, wouldn't it? -- http://mail.python.org/mailman/listinfo/python-list

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Peter Otten
Joel Hedlund wrote: > FOUND IT! Heureka! > I added the line > > print >> f, '\n'.join(sorted(sys.path)) > > and diff:ed the files produced from terminal/launcher. > > When using the launcher, changes to PYTHONPATH done in ~/.bashrc are > not picked up, and I apparently had an old reference to

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
I guess the moral of the story is don't always dist-upgrade. Reformat once in a while to remove old forgotten garbage. Clear the blood clots from your systems, so to say. -- http://mail.python.org/mailman/listinfo/python-list

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
FOUND IT! I added the line print >> f, '\n'.join(sorted(sys.path)) and diff:ed the files produced from terminal/launcher. When using the launcher, changes to PYTHONPATH done in ~/.bashrc are not picked up, and I apparently had an old reference to /usr/lib/ python2.4 sitting in there. Removed it

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
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: import sys f = open('/tmp/eraseme.txt', 'w') print >> f, "The executable is %r." % sys.executable f.close() In both cases (launcher/termial) the contents of

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Peter Otten
Joel Hedlund wrote: > I'm having a weird problem with the 'External Tools' plugin for gedit, > that seems to get weirder the more I dig into it. When I start gedit > by clicking a launcher (from the Ubuntu menu, panel or desktop) > everything is dandy and the 'External Tools' plugin works as expec

Re: gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
bah, I meant to say I'm running "a fully updated ubuntu lucid lynx (10.4)". -- http://mail.python.org/mailman/listinfo/python-list

gedit 'External Tools' plugin hashlib weirdness

2010-09-30 Thread Joel Hedlund
I'm having a weird problem with the 'External Tools' plugin for gedit, that seems to get weirder the more I dig into it. When I start gedit by clicking a launcher (from the Ubuntu menu, panel or desktop) everything is dandy and the 'External Tools' plugin works as expected. When gedit is launched f