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)

Str: fileOverride : allows for a completely different file location

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