X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e02c0a13600894068466a3e7a6035839c3ddd383..13b955a7556502bf9a66986b8ff62c1cd260e138:/wxPython/src/msw/xrc.py?ds=sidebyside diff --git a/wxPython/src/msw/xrc.py b/wxPython/src/msw/xrc.py index ea2d50be66..5bbd09e39e 100644 --- a/wxPython/src/msw/xrc.py +++ b/wxPython/src/msw/xrc.py @@ -708,7 +708,12 @@ TheXmlResource = XmlResource_Get() def _my_import(name): - mod = __import__(name) + try: + mod = __import__(name) + except ImportError: + import traceback + print traceback.format_exc() + raise components = name.split('.') for comp in components[1:]: mod = getattr(mod, comp)