X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a27f3943619be8fe8b3c6acb6140aae1c6503de..bce169798613bd3143f9fbeb3dc41488d9571bbf:/wxPython/src/msw/xrc.py diff --git a/wxPython/src/msw/xrc.py b/wxPython/src/msw/xrc.py index cf28fe485f..5bbd09e39e 100644 --- a/wxPython/src/msw/xrc.py +++ b/wxPython/src/msw/xrc.py @@ -79,10 +79,6 @@ class XmlResource(_core.Object): __swig_destroy__ = _xrc.delete_XmlResource __del__ = lambda self : None; - def GetFirstRoot(*args, **kwargs): - """GetFirstRoot(self) -> XmlNode""" - return _xrc.XmlResource_GetFirstRoot(*args, **kwargs) - def Load(*args, **kwargs): """Load(self, String filemask) -> bool""" return _xrc.XmlResource_Load(*args, **kwargs) @@ -712,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)