Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Check if in batch mode?


How can I check if klayout has been started in batch mode within my ruby script.


  • Hi,

    the easiest way to is check whether there is a main window:

    batch_mode = !RBA::Application::instance.main_window

    The main window is nil if in batch mode (-b or -zz). Otherwise it's a non-nil reference to the main window object.


Sign In or Register to comment.