Re: [Python-ideas] Why is there no way to pass PYTHONPATH on the command line?

FYI This works in Windows: C:\Python26>set PYTHONPATH=c:\temp & python Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
-- Gerald Britton

On 19 September 2012 17:36, Gerald Britton <gerald.britton@gmail.com> wrote:
But it leaves PYTHONPATH set afterwards, and it overwrites any PYTHONPATH setting you may have had before. D:\Data>set PY PYTHONPATH=C:\Temp D:\Data>(set PYTHONPATH=D:\ & py -3.2) Python 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
^Z
D:\Data>set PY PYTHONPATH=D:\ Paul.

On 19 September 2012 17:36, Gerald Britton <gerald.britton@gmail.com> wrote:
But it leaves PYTHONPATH set afterwards, and it overwrites any PYTHONPATH setting you may have had before. D:\Data>set PY PYTHONPATH=C:\Temp D:\Data>(set PYTHONPATH=D:\ & py -3.2) Python 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information.
^Z
D:\Data>set PY PYTHONPATH=D:\ Paul.
participants (2)
-
Gerald Britton
-
Paul Moore