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

Tim Delaney timothy.c.delaney at gmail.com
Sat Sep 15 00:47:23 CEST 2012


On 15 September 2012 08:40, Paul Moore <p.f.moore at gmail.com> wrote:

> On 14 September 2012 23:11, Daniel Holth <dholth at gmail.com> wrote:
> > On Fri, Sep 14, 2012 at 6:10 PM, Mike Graham <mikegraham at gmail.com>
> wrote:
> >> PYTHONPATH=whatever python -c "import something; something.foo()"
> >>
> >> Mike
> >
> > Yes, I've heard of that one. Does it work on Windows too?
>
> No. Sadly.


Unless you're using either cygwin or (my preference) msys <
http://www.mingw.org/wiki/MSYS>.

Tim Delaney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20120915/2bc59c49/attachment.html>


More information about the Python-ideas mailing list