Jean-Michel Fauth wrote:
win98, Py 2.3.4, wxPy 2.5.3.0p.20041025
It seems, wxversion.select() is appending to sys.path twice the directory path
of the module containing the wxversion.select() statement. The sys.path is ok,
without a select statement.
The directory of the script being run as __main__ is automatically on
the sys.path. Is that what you are seeing? If you think something is
wrong please do the following and send the results:
import sys, pprint
print "Before:"
pprint.pprint(sys.path)
print "After:"
import wxversion
wxversion.select("2.5")
import wx <<<<<<<<<<<was missing
pprint.pprint(sys.path)
I'm stupid. Of course Python appends automatically the path of the running script app.
I was too much clouded by a previous post about a "similar" issue.
I should add a "take some rest" line on my to do list
Jean-Michel Fauth, Switzerland.