in3Utils.cfgUtils.cfgToRcf
- cfgToRcf(cfg, fileName)[source]
Convert configuration object to RCF format file (used by NGI MoT).
Takes a ConfigParser object and writes its contents to a file in rcf format, excluding certain sections and formatting others according to RCF requirements.
- Parameters
cfg (configparser.ConfigParser) – Configuration object containing sections and their key-value pairs
fileName (str or pathlib.Path) – Path to the output file where the RCF format will be written