executing python programs as if they were on OS path (noob)

Peter Hansen peter at engcorp.com
Tue Aug 3 17:30:47 EDT 2004


Darren Dale wrote:

> I'm on XP.

Ah, then it's easy.

If you've installed the standard distribution properly, it very likely
is already set up so that merely typing the name of the Python script
on the command line will search in the directories in PATH for the
matching script, and execute it.  In other words, just stop typing
"python" in front of the script name! :-)

And if you have the PATHEXT environment variable set up to contain
".py" then you won't even have to put .py on the end...

-Peter



More information about the Python-list mailing list