Files
wxWidgets/wxPython/wxPython/__init__.py
2003-11-12 21:34:20 +00:00

15 lines
402 B
Python

# The "old" wxPython package
# We need to be able to import from the wx package, but there is also
# a wxPyton.wx module and that woudl normally be chosen first by
# import statements. So instead we'll have a wxPython._wx module and
# then stuff it into sys.modules with a wxPython.wx alias so odl
# programs will still work.
import _wx
import sys
sys.modules['wxPython.wx'] = _wx
wx = _wx
del sys