projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b33d7
)
better report if the subclass factory has import problems
author
Robin Dunn
<robin@alldunn.com>
Wed, 1 Nov 2006 02:20:25 +0000
(
02:20
+0000)
committer
Robin Dunn
<robin@alldunn.com>
Wed, 1 Nov 2006 02:20:25 +0000
(
02:20
+0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42888
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
wxPython/src/_xrc_ex.py
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/src/_xrc_ex.py
b/wxPython/src/_xrc_ex.py
index fbd94db1d6d4ca821f76884c257f05f87bf183ba..53abd3d44c1f98cd91d36e78cf59531ff2c39e19 100644
(file)
--- 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)