Windows and python execution
Thorsten Kampe
thorsten at thorstenkampe.de
Thu Dec 29 21:54:37 EST 2005
* Mark Carter (2005-12-26 23:06 +0100)
> I had installed python 2.4 in the standard way, so py files were already
> associated with python when you double-clicked them from Explorer. Using
> my set meant that if I wanted to use py files from the command line, I
> could just type out the script name (you have to be in the right
> directory, of course), and it works. Here's a snippit from my
> autoexec.bat files:
> set PATH=C:\python24;%PATH%
> set .py=c:\python24\python.exe
If you installed Python the normal way, .py files are already
associated with Python. Windows uses the registry and doesn't make any
difference whether you doubleclick a file or type the name on the
command line
More information about the Python-list
mailing list