def absModuleName(name, base, finder=imp.find_module):
    """ Gets the absolute name of a module that has been imported by `base`."""

    if "." in name:
        name,rest = name.split(".", 1)
    else:
        rest = None
        
    absName, f, path, desc = _findModule(name, base, finder)

    if rest:
        return absName + "." + rest
    else:
        return absName

# * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
dataset/ETHPy150Open joehewitt/devon/devon/importing.py/absModuleName/original