[Python-ideas] Why is there no way to pass PYTHONPATH on the command line?
Eric Snow
ericsnowcurrently at gmail.com
Sat Sep 15 01:17:46 CEST 2012
On Fri, Sep 14, 2012 at 5:03 PM, Guido van Rossum <guido at python.org> wrote:
> On Fri, Sep 14, 2012 at 3:48 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
>> ... issue13475 ...
> Why is the proposal --path0 and not --path? (The only utility I know
> with a command line option spelled as "foo0" is find, where -print0
> means "like -print, but append \0 instead of \n".)
It's meant to allow you to explicitly manage the sys.path[0] value
that gets set implicitly. That it fits Daniel's use case (as I
understand it) is not coincidental, but it's not meant as a wholesale
substitute for PYTHONPATH. That would be a separate proposal (which I
believe exists in the tracker already).
-eric
More information about the Python-ideas
mailing list