IHP-GmbH / IHP-Open-PDK

130nm BiCMOS Open Source PDK, dedicated for Analog, Mixed Signal and RF Design
Apache License 2.0
306 stars 41 forks source link

Allow running KLayout DRC script without GUI #35

Closed Syndace closed 5 months ago

Syndace commented 5 months ago

This is a very small change to check whether main_window is valid before trying to get the current view. This allows the script to be run in batch mode (klayout -zz -r sg13g2.lydrc <design>.gds) without GUI. This is useful to run the DRC check in a script (for example as part of OpenROAD-flow-scripts) or on a remote server.

Syndace commented 5 months ago

Closing in favour of https://github.com/IHP-GmbH/IHP-Open-PDK/pull/36