![](https://secure.gravatar.com/avatar/d995b462a98fea412efa79d17ba3787a.jpg?s=120&d=mm&r=g)
Sept. 14, 2012
10:40 p.m.
On 14 September 2012 23:11, Daniel Holth <dholth@gmail.com> wrote:
On Fri, Sep 14, 2012 at 6:10 PM, Mike Graham <mikegraham@gmail.com> wrote:
On Fri, Sep 14, 2012 at 5:24 PM, Daniel Holth <dholth@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()"
I am aware that the __main__.py behavior lessens the need for this significantly.
PYTHONPATH=whatever python -c "import something; something.foo()"
Mike
Yes, I've heard of that one. Does it work on Windows too?
No. Sadly. Paul.