[Python-ideas] Why is there no way to pass PYTHONPATH on the command line?
Guido van Rossum
guido at python.org
Sat Sep 15 01:03:39 CEST 2012
On Fri, Sep 14, 2012 at 3:48 PM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
> On Fri, Sep 14, 2012 at 3:24 PM, Daniel Holth <dholth at gmail.com> wrote:
>> Why is there no way to pass PYTHONPATH on the command line? Oversight
>> or intentional?
>> Given path_item/something.py
>> python -p path_item -c "import something; something.foo()"
> Do you mean something along the lines of
> http://bugs.python.org/issue13475? This would add --path0 and
> --nopath0 as commandline options. Of course, this would only be in
> Python 3.4 (if it makes it in at all).
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".)
--Guido van Rossum (python.org/~guido)
More information about the Python-ideas