mpas_tools.config.MpasConfigParser.add_from_package

MpasConfigParser.add_from_package(package, config_filename, exception=True)[source]

Add the contents of a config file to the parser.

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

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

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