git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-11-01 03:27:49 +00:00
parent 2bf8f4c0d5
commit b6df5cf983
16 changed files with 646 additions and 411 deletions

View File

@@ -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)