in3Utils.cfgUtils.getModuleConfig
- getModuleConfig(module, fileOverride='', modInfo=False, toPrint=True, onlyDefault=False)[source]
Returns the configuration for a given module returns a configParser object
- module object: modulethe calling function provides the already imported
module eg.: from avaframe.com2AB import com2AB leads to getModuleConfig(com2AB) whereas from avaframe.com2AB import com2AB as c2 leads to getModuleConfig(c2) OR: pathlib Path to module (python file)
- Str: fileOverrideallows for a completely different file location. However note:
missing values from the default cfg will always be added!
- modInfo: bool
true if dictionary with info on differences to standard config
- onlyDefault: bool
if True, only use the default configuration
Order is as follows: fileOverride -> local_MODULECfg.ini -> MODULECfg.ini