def import_module(module):
    try:
        __import__(module)
        return sys.modules[module]
    except ImportError:
        abort("Unable to import the module: {0}".format(module))


# import provider and configurator here so their fabric tasks are properly namespaced
Allows custom providers, configurators and distros.
dataset/ETHPy150Open rizumu/bootmachine/bootmachine/core.py/import_module