[wxPython-dev] Re: 20061118 test build uploaded
jmf
jfauth at bluewin.ch
Tue Nov 21 13:33:12 PST 2006
Robin Dunn wrote:
> All *.pth files are loaded, and probably in no particular order. So
> having both wx*.pth files will cause both paths to be added to the
> sys.path. You might want to consider just having one file and edit it
> when you want to change the default. I think you can have # comments in
> the file so you could have both paths listed in there, and just comment
> out the one you don't want to be active.
Correct, and this is what I do. I have a wx.pth symlink in my home
directory, with entries for 2.6.3.3 and 2.7.2. One is commented. I have
a script that I can run at the commandline such as:
wx stable
wx dev
Works well.
----
I noticed it is not even necessary to use a commented line. More
precisely, the first valid line wins.
The wx.pth file may end or not with a "\n".
wx-2.8-msw-unicode
wx-2.7.2-msw-ansi
=> wx-2.8 is used
wx-2.7.2-msw-ansi
wx-2.8-msw-unicode
=> wx-2.7.2 is used
#wx-2.8-msw-unicode
wx-2.7.2-msw-ansi
=> wx-2.7.2 is used.
#wx-2.7.2-msw-ansi
wx-2.8-msw-unicode
=> wx-2.8 is used.
Anyway, as Paul McNett has said, it is working very well.
jmf
More information about the wxpython-dev
mailing list