def _findModule(name, base, finder=imp.find_module):
    packagePath = getPackagePath(base)
    paths = ([packagePath] + sys.path) if os.path.isdir(packagePath) else None
    found = finder(name, paths)
    if not found:
        raise ImportError("Unable to import %s" % name)

    f, path, desc = found
    if os.path.normcase(os.path.dirname(path)) == os.path.normcase(packagePath):
        # The path of the file we found is contained in the same path as the base module,
        # therefore we know that it is a relative import
        absName = getPackageChildName(base, name)
    else:
        absName = name
    
    return absName, f, path, desc

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