Change between Python 2.3 and 2.4 under WinXP

Peter Hansen peter at engcorp.com
Thu Mar 31 16:00:09 EST 2005


Martin v. Löwis wrote:
> Franz Steinhäusler wrote:
>> Is there any possibility under WinXP, to alterntate quickly (with 
>> batch file or similary) between python23 and python24.

> If you are concerned that the .py association changes, you
> have two options:
> 
> 1. manually edit the registry. Under HKEY_CLASSES_ROOT,
>    find Python.File (or Python.NoConFile), then shell\open\command,
>    and switch between paths.

Or even quicker: write a batch file that calls the
"ftype" command to change the registry setting.
(I believe changes made with ftype are persistent,
but haven't tested.)

Use "ftype /?" at a prompt to learn more, and try
"assoc .py" and "ftype Python.File" to learn more specifically
about what these do for Python.

-Peter



More information about the Python-list mailing list