ActiveState Community

Multiple Version of python

Posted by imageguy1206 on 2008-10-03 08:36

with the recent release of python2.6 I would like to start porting some of my applications, however, I can't just drop support for 2.5.

How can I specify which version of Python to use when running an application ?

g.

toddw | Fri, 2008-10-03 11:40

You will need to change the Komodo's Python interpreter preferences to point to the python 2.5/2.6 executable in order to run/debug with a different interpreter.

Komodo projects can be helpful when dealing with this situation, as you can set a different Python interpreter per project (right-click on the project and select "Properties").

I'd create a separate directory (or scc branch) for the 2.6 ported version of the code, in which I'd create a new Komodo project and set the Python interpreter to the "python2.6" executable. Any files that you open from this project should start debugging with the 2.6 executable.

Cheers,
Todd