xoa.cfgm.ConfigManager.patch

ConfigManager.patch(cfg, cfgpatch, validate=False)[source]

Replace config values of cfg by those of cfgpatch

Parameters:
  • cfg – A ConfigObj instance, a config file or a dictionary, that must be patched.

  • cfgpatch – A ConfigObj instance, a config file or a dictionary, used for patching.

  • validate (optional) – If True, validate configs if they have a valid config spec.