def import_dotted_path(path):
    """
    Takes a dotted path to a member name in a module, and returns
    the member after importing it.
    """
    try:
        module_path, member_name = path.rsplit(".", 1)
        module = import_module(module_path)
        return getattr(module, member_name)
    except (ValueError, ImportError, __HOLE__) as e:
        raise ImportError("Could not import the name: %s: %s" % (path, e))
dataset/ETHPy150Open stephenmcd/mezzanine/mezzanine/utils/importing.py/import_dotted_path