X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e02c0a13600894068466a3e7a6035839c3ddd383..395e0a70bad49a83c9c8eb7626b1e3dd2e5f10c5:/wxPython/src/mac/xrc.py?ds=inline diff --git a/wxPython/src/mac/xrc.py b/wxPython/src/mac/xrc.py index ea2d50be66..6bee8d35af 100644 --- a/wxPython/src/mac/xrc.py +++ b/wxPython/src/mac/xrc.py @@ -262,7 +262,7 @@ class XmlSubclassFactory(object): def __init__(self, *args, **kwargs): """__init__(self) -> XmlSubclassFactory""" _xrc.XmlSubclassFactory_swiginit(self,_xrc.new_XmlSubclassFactory(*args, **kwargs)) - self._setCallbackInfo(self, XmlSubclassFactory) + XmlSubclassFactory._setCallbackInfo(self, self, XmlSubclassFactory) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" @@ -535,7 +535,7 @@ class XmlResourceHandler(_core.Object): def __init__(self, *args, **kwargs): """__init__(self) -> XmlResourceHandler""" _xrc.XmlResourceHandler_swiginit(self,_xrc.new_XmlResourceHandler(*args, **kwargs)) - self._setCallbackInfo(self, XmlResourceHandler) + XmlResourceHandler._setCallbackInfo(self, self, XmlResourceHandler) __swig_destroy__ = _xrc.delete_XmlResourceHandler __del__ = lambda self : None; @@ -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)