def import_module(module):
    try:
        module = sys.modules[module]
    except KeyError:
        __import__(module)
        module = sys.modules[module]
    return module
Imports module with given dotted name.
dataset/ETHPy150Open diefenbach/django-lfs/lfs/core/utils.py/import_module