fix: handle PDK_ROOT being unset for volare

This commit is contained in:
htfab
2024-09-23 06:40:11 +03:00
committed by Uri Shaked
parent d497541361
commit dd77f85278
+1 -1
View File
@@ -549,7 +549,7 @@ class Project:
)
open("runs/wokwi/PDK_SOURCES", "w").write(pdk_sources)
volare.enable(
os.environ["PDK_ROOT"],
volare.get_volare_home(), # uses PDK_ROOT if set, ~/.volare otherwise
{"sky130A": "sky130"}[config["PDK"]],
pdk_sources.split()[1],
)