another question is regarding PYTHONPATH.
When I installed python, it already installed wxpython in lib\site-
packages, also wx.pth, wxversion.py.
In this case, which wxpython is using when I run demo.py?
thanks.
From nmake.exe I conclude you are on Windows.
That's a pure Python job.
For *every* installed Python version, c:\Python25,
c:\Python26, c:\Python27 , ..., you have
- a sys.path
- a lib\site-packages containing one or more "wxPython's"
- a wx.pth defining a default wxPython version by *extending
the sys.path*
- a wxversion module allowing to select the wxPython
version if you do not use the default (wx.pth) version.
Now running a *Python* script (.py, .pyw), can be the demo.py,
will just follow the Python rules as defined above.
Example:
If wxPython is installed in/as
C:\Python27\Lib\site-packages\wx-2.9.1-msw
and
wx.pth points to wx-2.9.1-msw
a command like
c:\Python27\python.exe demo.py
will use "python27" and "wxPython 2.9.1".
(indepedently of any PYTHONPATH env)
You have to be sure to use a demo.py version
corresponding to the correct Python and wxPython
version. The demo.py does not use wxversion, since
there is a demo for every Python/wxPython version.
jmf
···
On Dec 30, 4:41 pm, wofeib <abb...@gmail.com> wrote: