A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/354306.html below:

Hello gnome-terminal

Hello gnome-terminal Hello gnome-terminalMike Meyer mwm at mired.org
Fri Sep 30 20:20:29 EDT 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
choices:

1) Tell gnome-terminal that it needs to start a login shell, assuming
   you can.

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
-- 
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 mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4