diff --git a/scripts/tcl_commands/klayout.tcl b/scripts/tcl_commands/klayout.tcl index 923520e6c..498f9d20e 100755 --- a/scripts/tcl_commands/klayout.tcl +++ b/scripts/tcl_commands/klayout.tcl @@ -126,6 +126,12 @@ proc run_klayout_drc_sky130 {args} { -rd seal=$seal \ -rd thread=$threads \ |& tee $::env(TERMINAL_OUTPUT) $drc_log + set ::env(PYTHONPATH) /build/lib/python3/dist-packages + try_exec python3 \ + $::env(SCRIPTS_DIR)/klayout/xml_drc_report_to_json.py \ + --xml-file $xml_report \ + --json-file $json_report + TIMER::timer_stop } }