try:
__import__(modname, globals(), locals(), [])
except ImportError, e:
# Add some extra info, since the default exception does not
# show the full module name.
raise ImportError('Cannot load module %s: %s' % (modname, e))
try:
__import__(modname, globals(), locals(), [])
except ImportError, e:
# Add some extra info, since the default exception does not
# show the full module name.
raise ImportError('Cannot load module %s: %s' % (modname, e))