Temporary PYTHONPATH in Windows

Posted by Santa on Stack Overflow See other posts from Stack Overflow or by Santa
Published on 2010-05-25T01:17:17Z Indexed on 2010/05/25 1:21 UTC
Read the original article Hit count: 293

Filed under:
|
|

How do I set, temporarily, the PYTHONPATH environment variable just before executing a Python script?

In *nix, I can do this:

$ PYTHONPATH='.' python scripts/doit.py

In Windows, this syntax does not work, of course. What is the equivalent, though?

© Stack Overflow or respective owner

Related posts about python

Related posts about Windows