STAR-future's picture
add chips/openroad_flow_scripts
d664931 verified
Raw History Blame Contribute Delete
284 Bytes
#!/usr/bin/env python3
def swap_prefix(file, old, new):
with open(file, "r") as f:
lines = f.read()
lines = lines.replace(old, new)
with open(file, "wt") as f:
f.write(lines)
swap_prefix("mainREADME.md", "```{mermaid}\n:align: center\n", "```mermaid")