Ensure that __version__ is visible from wxPython/__init__.py
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,4 +44,4 @@ MemoryFSHandler_AddFile
|
|||||||
# given prefix and will put a reference in the local module.
|
# given prefix and will put a reference in the local module.
|
||||||
EVT*
|
EVT*
|
||||||
WXK*
|
WXK*
|
||||||
|
__version__*
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
|
|
||||||
# We need to be able to import from the wx package, but there is also
|
# 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
|
# a wxPyton.wx module and that would normally be chosen first by
|
||||||
# import statements. So instead we'll have a wxPython._wx module and
|
# 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
|
# then stuff it into sys.modules with a wxPython.wx alias so old
|
||||||
# programs will still work.
|
# programs will still work.
|
||||||
|
|
||||||
import _wx
|
import _wx
|
||||||
@@ -12,3 +12,5 @@ import sys
|
|||||||
sys.modules['wxPython.wx'] = _wx
|
sys.modules['wxPython.wx'] = _wx
|
||||||
wx = _wx
|
wx = _wx
|
||||||
del sys
|
del sys
|
||||||
|
|
||||||
|
from wx import __version__
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
# Load all symbols that should appear in the wxPython.wx namespace
|
# Load all symbols that should appear in the wxPython.wx namespace
|
||||||
from core import *
|
from core import *
|
||||||
|
from core import __version__
|
||||||
from gdi import *
|
from gdi import *
|
||||||
from windows import *
|
from windows import *
|
||||||
from controls import *
|
from controls import *
|
||||||
|
Reference in New Issue
Block a user