Python search path (on Windows)
Diez B. Roggisch
deets at nospam.web.de
Wed Oct 22 06:10:23 EDT 2008
wooly booly wrote:
> I would like to execute a Python script from Windows command line:
>
> Python myscript.py
>
> This works if myscript.py resides in the current folder. My question is:
> Is it possible to execute the command above from another folder?
>
> I put the script's folder in the PYTHONPATH environment variable but this
> didn't help.
Then you could try
Python -m myscript
Diez
More information about the Python-list
mailing list