(paths, name)
return (None, None)
paths is a list of directories to search for an archive.
    name is the abbreviated name given to find_library().
    Process: search "paths" for archive, and if an archive is found
    return the result of get_member().
    If an archive is not found then return None
paths is a list of directories to search for an archive.
    name is the abbreviated name given to find_library().
    Process: search "paths" for archive, and if an archive is found
    return the result of get_member().
    If an archive is not found then return None
paths is a list of directories to search for an archive . name is the abbreviated name given to find_library () . Process : search paths for archive and if an archive is found return the result of get_member () . If an archive is not found then return None
def find_shared(paths, name):
    """
    paths is a list of directories to search for an archive.
    name is the abbreviated name given to find_library().
    Process: search "paths" for archive, and if an archive is found
    return the result of get_member().
    If an archive is not found then return None
    """
    for dir in paths:
        # /lib is a symbolic link to /usr/lib, skip it
        if dir == "/lib":
            continue
        # "lib" is prefixed to emulate compiler name resolution,
        # e.g., -lc to libc
        base = f'lib{name}.a'
        archive = path.join(dir, base)
        if path.exists(archive):
            members = get_shared(get_ld_headers(archive))
            member = get_member(re.escape(name), members)
            if member is not None:
                return (base, member)
            else:
                return (None, None)
    return (None, None)
def find_shared ( paths , name ) : for dir in paths : # /lib is a symbolic link to /usr/lib, skip it if dir == "/lib" : continue # "lib" is prefixed to emulate compiler name resolution, # e.g., -lc to libc base = f'lib{name}.a' archive = path . join ( dir , base ) if path . exists ( archive ) : members = get_shared ( get_ld_headers ( archive ) ) member = get_member ( re . escape ( name ) , members ) if member is not None : return ( base , member ) else : return ( None , None ) return ( None , None )