libconfig.Config.get_option

Config.get_option(key, subkey, in_path_none=False)

Get the current value of the option.

Parameters:
  • key (str) – First identifier of the option.
  • subkey (str) – Second identifier of the option.
  • in_path_none (bool) – Allows for in_path values of None to be retrieved.
Returns:

Current value of the option (type varies).

Raise:
NotRegisteredError:
 If key or subkey do not define any option.
ValueError:If a in_path type with None value is requested.