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.