def find_module(modname, path=None):
    if "." in modname:
        pkgname, modname = modname.rsplit(".", 1)
        pkg = find_package(pkgname)
        return find_module(modname, pkg.__path__)
    try:
        info = imp.find_module(modname, path)
    except ImportError:
        return None
    return info
Find a module, also handling subpackages.
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/module.py/find_module