[Patches] [ python-Patches-442863 ] Add switch to disable PYTHON{HOME,PATH}
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 20 Jul 2001 12:07:05 -0700
Patches item #442863, was opened at 2001-07-19 12:40
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=442863&group_id=5470
Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Neil Schemenauer (nascheme)
>Assigned to: Neil Schemenauer (nascheme)
Summary: Add switch to disable PYTHON{HOME,PATH}
Initial Comment:
This patch adds the -E command line switch. When
specified, the PYTHONHOME and PYTHONPATH environment
variables are ignored.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-20 12:07
Message:
Logged In: YES
user_id=6380
Very nice, Neil. Check it in please!
Typo: the man page patch has a reference to PYTHOHHOME...
----------------------------------------------------------------------
Comment By: Neil Schemenauer (nascheme)
Date: 2001-07-20 11:01
Message:
Logged In: YES
user_id=35752
Okay, here's an updated patch the adds a -E option which
suppresses all PYTHON* environment variables. Suggestions
for improvements welcome.
----------------------------------------------------------------------
Comment By: Neil Schemenauer (nascheme)
Date: 2001-07-19 14:14
Message:
Logged In: YES
user_id=35752
-E only suppress PYTHONHOME and PYTHONPATH. Are you sure
about suppressing them all? There are quite a few (around
8). PYTHONHOME and PYTHONPATH seem to be the only ones
that cause real trouble.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-07-19 13:37
Message:
Logged In: YES
user_id=6380
Cool, Neil!
Nits:
- The Makefile uses "-Ec" somewhere; I recommend to use "-E
-c" instead.
- Does -E suppress PYTHONSTARTUP or doesn't it? The
comments are inconsistent with the help message. I think it
should suppress *all* use of Python-specific environment
variables.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=442863&group_id=5470