in3Utils.cfgHandling.applyCfgOverride¶
- applyCfgOverride(cfgToOverride, cfgWithOverrideParameters, module, addModValues=False)[source]¶
override configuration parameter values with the values provided in cfgWithOverrideParameters[modName_override] if addModValues True update the cfgWithOverrideParameters with the values for all parameters that are not provided in the override parameters
- Parameters
cfgToOverride (configparer object) – configuration of module of interest
cfgWithOverrideParameters (configparser object) – full configuration settings containing a section modName_override with parameter values that should be overriden in the cfgToOverride
module – module of the cfgToOverride configuration
addModValues (bool) – if True add all parameters from cfgToOverride module to cfgWithOverrideParameters override section
- Returns
cfgToOverride (configparser object) – updated configuration of module
cfgWithOverrideParameters (configparser object) – updated configuration of module