def main(libpath, prettypath):
    ok = True
    for dirpath, dirnames, files in os.walk(libpath):
        dirnames.sort()
        files.sort()
        for f in fnmatch.filter(files, "*.lib"):
            path = os.path.join(dirpath, f)
            if f not in EXCLUSIONS:
                result = checklib(path, prettypath)
                if not result:
                    ok = False
            else:
                print("Skipping '{}'".format(path))
    return ok
dataset/ETHPy150Open adamgreig/agg-kicad/scripts/check_lib.py/main/original