executing python programs as if they were on OS path (noob)
dd55 at cornell.edu
Tue Aug 3 23:46:46 CEST 2004
Peter Hansen wrote:
> 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...
You know, I tried that the other day, and it didnt work. I think I know
the reason: when the DOS terminal loads, PATH is read. I didn't restart
the terminal after changing PATH.
Thanks for your help. Its working now.
More information about the Python-list