RE: Multiple versions



(Just to keep things readable, I've reordered the
posts top-to-bottom chronologically. And "Me" is the
cognomen of the original poster, not simply a redundant personal
pronoun!)

[Me]
> I need to install both 2.3 and 2.4 on my Win2000 system.
> Can someone please
> give me a pointer as to how to do this? Thanks!

[Tim Golden]
> ... The simple answer is: just install
> them (in different directories, eg c:\python23,
> c:\python24), installing last the one which
> you want your .py/.pyw files to be associated with.

[Me]
> Thank you for your reply! Is there a simple way to
> change the .py/.pyw associations? Like a registry
> setting I can "toggle"? Or are there lots of other
> things involved, system directory libraries etcetera?

Assuming that you're not doing anything fancy with
system or Python paths -- and I guess from the tenor
of your questions that you're not -- then it's just
the same as changing any other file association on
Windows. There was a thread on this subject fairly
recently, but in essence you can either use the
File Associations tab on Explorer (on XP it's
under Tools > Folder Options > File Types) or
you can use the command line equivalent:

FTYPE Python.File="C:\Python24\python.exe" "%1" %*

replacing c:\python24 by whatever is appropriate.

If you really wanted to do things which involved
testing your programs against different versions
of Python, which I imagine might be your aim, then
you probably want either to write some sort of batch
file wrapper (search c.l.py for some examples of this
in the past) or to use a MoveablePython installation:

http://www.voidspace.org.uk/python/movpy/

which is designed for this kind of things (according
to their introduction).

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
.



Relevant Pages

  • Re: Multiple versions
    ... This will work fine for me Tim, ... The simple answer is: just install ... the same as changing any other file association on ... anti-virus service working around the clock, around the globe, visit: ...
    (comp.lang.python)
  • RE: Office tries to repair/reinstall
    ... If I give them back their admin ... rights to everyone is not a good way to solve it. ... The file association issue should be also related to the Office 2007 installation. ... I will check the registry and install windows installer. ...
    (microsoft.public.office.setup)
  • RE: Office tries to repair/reinstall
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Download and install the Windows Installer Cleanup Utility. ... Giving admin rights to everyone is not the solution. ... The file association issue should be also related to the Office 2007 installation. ...
    (microsoft.public.office.setup)
  • Re: Disk Defragmenter wont Analyze or Defragment
    ... doesn't give me the option to install, nor in right clicking on an .ini ... INF File Association Fix ... Defrag with XP SP2 needs the DCOM Server Process Launcher service ...
    (microsoft.public.windowsxp.general)
  • RE: Office tries to repair/reinstall
    ... The file association issue should be also related to the Office 2007 installation. ... Let's first focus on the Office 2007 installation issue. ... I will check the registry and install windows installer. ...
    (microsoft.public.office.setup)

Loading