libconfig.Config.set_option

Config.set_option(key, subkey, value)

Sets the value of an option.

Parameters:
  • key (str) – First identifier of the option.
  • subkey (str) – Second identifier of the option.
  • value – New value for the option (type varies).
Raise:
NotRegisteredError:
 If key or subkey do not define any option.
ValueError:If the targeted obtion is locked.
ValueError:If the provided value is not the expected type for the option.
ValueError:If the provided value is not in the expected available values for the option.