def find_path_package(thepath):
    """
        Takes a file system path and returns the module object of the python
        package the said path belongs to. If the said path can not be
        determined, it returns None.
    """
    pname = find_path_package_name(thepath)
    if not pname:
        return None
    fromlist = b'' if six.PY2 else ''
    return __import__(pname, globals(), locals(), [fromlist])
def find_path_package ( thepath ) : pname = find_path_package_name ( thepath ) if not pname : return None fromlist = b'' if six . PY2 else '' return __import__ ( pname , globals ( ) , locals ( ) , [ fromlist ] )
Takes a file system path and returns the module object of the python
        package the said path belongs to. If the said path can not be
        determined, it returns None.