From c9c106fde5ab3f5dc5f37a7286cef86e0de5cb8d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 28 Nov 2003 18:40:47 +0000 Subject: [PATCH] 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 --- wxPython/src/_core_reverse.txt | 2 +- wxPython/wxPython/__init__.py | 6 ++++-- wxPython/wxPython/_wx.py | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wxPython/src/_core_reverse.txt b/wxPython/src/_core_reverse.txt index fc8c4eb362..0176d97744 100644 --- a/wxPython/src/_core_reverse.txt +++ b/wxPython/src/_core_reverse.txt @@ -44,4 +44,4 @@ MemoryFSHandler_AddFile # given prefix and will put a reference in the local module. EVT* WXK* - +__version__* diff --git a/wxPython/wxPython/__init__.py b/wxPython/wxPython/__init__.py index ff5af048a7..bf3637fbcb 100644 --- a/wxPython/wxPython/__init__.py +++ b/wxPython/wxPython/__init__.py @@ -2,9 +2,9 @@ # 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 -# 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. import _wx @@ -12,3 +12,5 @@ import sys sys.modules['wxPython.wx'] = _wx wx = _wx del sys + +from wx import __version__ diff --git a/wxPython/wxPython/_wx.py b/wxPython/wxPython/_wx.py index 3712b2e850..9342b81db2 100644 --- a/wxPython/wxPython/_wx.py +++ b/wxPython/wxPython/_wx.py @@ -1,6 +1,7 @@ # Load all symbols that should appear in the wxPython.wx namespace from core import * +from core import __version__ from gdi import * from windows import * from controls import * -- 2.47.2