Root configuration class, the object in the config variable.
This object has a special feature: it implicitely dereferences the defaut configuration when getting an attribute on it. This way, config.toolchain.something is in fact config.<default>.toolchain.something.
Takes the root of the current soclib installation. Parses “built-in.conf” in the current directory as a starting point.
Lists the available configuration types
Sets the configuration used sor subsequent attribute gettings.
Configuration file API, adds a class name to be imported, capable of parsing metadata files
Parameters: | parser – A metadata provider class name string. |
---|
Needed by the configuration file API, adds a description path to the default list. Accepts paths relative the soclib’s root or absolute.
Parameters: | path – Root path to add to soclib index path |
---|
Sets an attribute, only supports setting attributes already present in class
Attribute getter hack, returns a :py:class`soclib_cc.config.objects.Config` present in the spool by its name, or equivalent attribute in the defaut config.
Special key “type” returns the current default config name.
Attribute setter.
-> changes __default_config
Setting a config with any key -> to __configs
Setting normal attribute