STAR-future's picture
add chips/openroad_flow_scripts (part 7)
34292e0 verified
Raw History Blame Contribute Delete
394 Bytes
#!/usr/bin/env python3
import os
import yaml
dir_path = os.path.dirname(os.path.realpath(__file__))
yaml_path = os.path.join(dir_path, "variables.yaml")
with open(yaml_path, "r") as file:
data = yaml.safe_load(file)
for key, value in data.items():
if value.get("default", None) is None:
continue
print(f'export {key}?={str(value["default"]).replace(" ", "__SPACE__")}')