compass.config.add_config(config, package, config_file, exception=True)[source]

Add the contents of a config file within a package to the current config parser

  • config (configparser.ConfigParser) – Configuration options

  • package (str or Package) – The package where config_file is found

  • config_file (str) – The name of the config file to add

  • exception (bool) – Whether to raise an exception if the config file isn’t found