SessionConfiguration

class nimble.core.configuration.SessionConfiguration

Returned by nimble.settings to manage configurable settings.

Settings can be changed for the current session only or saved to become the new default settings. Default settings are saved to a file (configuration.ini) and loaded on import.

Settings are divided into sections and options. Options are the configurable variables and sections define groups of options used for a similar purpose. To see the current settings call nimble.settings.get().

See also

nimble.settings

Keywords

configure, configuration, options

Methods

get([section, option])

Query the current settings.

hook(section, option, toCall)

Assign a function to be called the next time the value of the specified section/option combination is changed.

saveChanges([section, option])

Permanently set changes made to the configuration file.

set(section, option, value)

Set an option for this session.

setDefault(section, option, value)

Permanently set a value in the configuration file.