[wxPython-users] Wx Demos using wrong version of Python

Robin Dunn robin at alldunn.com
Sat Nov 3 16:29:33 PDT 2007


Tony Cappellini wrote:
> 
> I've got Python 2.3, 2.4, 2.5 installed on a Windows machine, and a 
> corresponding version of wx for each Python installation.
> However, currently, only Python 2.5 is in my path.
> I've installed the wx Demos while Python 2.5 was in my path (even though 
> it doesn't get installed under the Python 2.5 tree).
> 
> When I launch any of the demos, Python 2.3.5 is displayed, instead of 
> Python 2.5.
> 
> I don't understand why this is happening, when ONLY python 2.5 is in my 
> path.
> 

Take a look at the properties of the shortcut.  It just lists the 
demo.py file, no Python executable.  So Windows just finds whatever 
executable is associated with *.pyw files in the registry and uses that. 
  So to have it do something different you can either change that 
association, or edit the shortcut to run a specific Python executable.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list