in3Utils.cfgUtils.readCompareConfig
- readCompareConfig(iniFile, modName, compare, toPrint=True)[source]
Read and optionally compare configuration files (if a local and default are both provided) and inform user of the eventual differences. Take the default as reference.
- Parameters
iniFile (path to config file) – Only one path if compare=False
compare (boolean) – True if two paths are provided and a comparison is needed
toPrint (boolean) – True (default) to print configuration to terminal. Differences to default will ALWAYS be printed
- Returns
Output (ConfigParser object) – contains combined config
modDict (dict) – dictionary containing only differences from default