mwm at mired.org
Sat Oct 1 02:20:29 CEST 2005
egbert <egbert.bouwman at hccnet.nl> writes:
> When I start the following script in a gnome-terminal:
> #!/usr/bin/env python
> import os
> print "hello gnome-terminal"
> print os.environ["PYTHONPATH"]
> I see the expected results in the same gnome-terminal window.
> However starting this same script via a launcher in a panel,
> a new gnome-terminal window is opened for output only,
> and PYTHONPATH is an unknown entity.
> How can I open a terminal over whose environment and
X has been breaking environments this way for decades. You have two
1) Tell gnome-terminal that it needs to start a login shell, assuming
2) Move the setting of PYTHONPATH into a different startup file, one
that will be executed by all shells when they start.
Whatever you do, don't ask about .MacOSX/preferences.plist.
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list