reading config

edited July 2012 in KLayout Support
When using RBA::Application.instance.read_config, it seems that it takes a restart of klayout for the changed configuration to be used.

I'm just using a very simple script testconfig.rb
RBA::Application.instance.read_config('test.conf')
RBA::Application.instance.exec

and run it with klayout -r testconfig.rb

When a config parameter is changed in test.conf, then I need to run the script twice for the config to be picked up.
Correct?

Comments

  • edited 12:43AM

    Hallo,

    On my installation it has the desired effect - KLayout is started with the given configuration. I am testing that with the background color - if I prepare a configuration file with a new background color and use your script to load it I get the right color.

    What parameter are you interested in?

    BTW: it may be more convenient to use a custom configuration by using the -c command line option of KLayout. You can combine that with -t (Don't update config file on exit) to disable any modifications of that file.

    Best regards,

    Matthias

  • edited 12:43AM
    I was using edit-mode. The -t switch is interesting by the way, it is not in the manual unless I overlooked
  • edited August 2012

    The command-line documentation is somewhat hidden:

    http://klayout.de/command_args.html

    There is also a description of the -t switch.

    Matthias

Sign In or Register to comment.