mpas_tools.config.MpasConfigParser.set

MpasConfigParser.set(section, option, value=None, comment=None, user=False)[source]
Set the value of the given option in the given section. The file from

which this function was called is also retained for provenance.

Parameters:
  • section (str) – The name of the config section

  • option (str) – The name of the config option

  • value (str, optional) – The value to set the option to

  • comment (str, optional) – A comment to include with the config option when it is written to a file

  • user (bool, optional) – Whether this config option was supplied by the user (e.g. through a command-line flag) and should take priority over other sources