Config Settings¶
There are a few settings you can choose to affect the behavior of the config object. You can view and change the settings with the property cfg.settings
:
silent
- IfTrue
, suppresses all print messages when values from the config are accessed and updated (False
by default).readonly
- IfTrue
, prevents any changes to the config values (False
by default).creator
- If specified, this must be the name of a registered creator, which will be used to create the config values (defaults toDefaultCreator
), for more information see the guide about creators.force_create
- IfTrue
, will always create new instances of components when pulling config values (False
by default).allow_create
- IfFalse
, only instances of components that have already been instantiated are returned when pulling config values (True
by default).ask_parents
- IfTrue
, missing keys will check in the parent config node (recursively) before raising aSearchFailed
error (True
by default).allow_cousins
- (advanced feature) IfTrue
, missing keys will check in the parent’s parent config node (recursively) with the current node’s key prepended before raising aSearchFailed
error (False
by default).