The _resolve_name and _import_module were taken from the backport of importlib.import_module from 3.x to 2.7. Thanks to the Python developers for making this available as a standalone module. This makes it possible to have an import module that mimics the “import” statement more closely.
Try to import moduleName. If this doesn’t work, use the “imp” module |
load_module
(moduleName, searchPath)¶Try to import moduleName. If this doesn’t work, use the “imp” module that is part of Python.