INNER CODE UNIT · Python

main

toyota-connected/ivi-homescreen · scripts/gen_config_reference.py:389

def main():
    check = "--check" in sys.argv[1:]
    rows = build()
    reftoml = render_reftoml(rows)
    table = render_table(rows)

    changed = []
    if (not REFTOML.exists()) or REFTOML.read_text() != reftoml:
        changed.append(str(REFTOML.relative_to(ROOT)))

    readme_rel = str(README.relative_to(ROOT))
    readme = README.read_text() if README.exists() else ""
    new_readme = readme
    r = replace_block(new_readme, BEGIN, END, table)
    if r is not None:
        new_readme = r
    else:
        sys.stderr.write(f"note: {readme_rel} has no CONFIG-REFERENCE markers; "

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…