X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/38b97c15acf982020caf8291c2ccc0b0a36eceab..fe45b493dcc42fea4ad4f781a4fb7844d2e95fd0:/wxPython/src/_xrc_ex.py?ds=inline diff --git a/wxPython/src/_xrc_ex.py b/wxPython/src/_xrc_ex.py index fbd94db1d6..53abd3d44c 100644 --- a/wxPython/src/_xrc_ex.py +++ b/wxPython/src/_xrc_ex.py @@ -10,7 +10,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)