build_configdir

build_configdir#

processor_tools.config.config_io.build_configdir(path, configs: Dict[str, str | dict], exists_skip: bool = False)[source]#

Writes set of configuration files to defined directory

Parameters:
  • path – configuration directory path (created if doesn’t exist)

  • configs – definition of configuration files as a dictionary, with an entry per configuration file to write - where the key should be the filename to write and the value should define the file content (see below for options of doing this).

  • exists_skip – (default: False) option to bypass processing if path directory already exists

Configs entry options:

  • path of config file to copy to configuration directory

  • configuration values dictionary

For example:

configs = {
    "copied_config.yaml": "path/to/old_config.yaml",
    "new_config.yaml": {"entry1": "value1"}
}