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?

Hi,

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

Comments

  • 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.

    Matthias

Sign In or Register to comment.