Configuration
- class ase2sprkkr.configuration.Configuration(definition, container=None)[source]
Class hierarchy
Constructor
- __init__(definition, container=None)
Create the container and its members, according to the definition
- store_value_permanent(name, value, doc=None, doc_regex=False)[source]
Set/remove permanently the value with given name in the config file. No name/value checking. If the value is present, it is changed, otherwise, new line with setting the value is added to the file. If the value is to be removed, all the lines value = …. will be removed from the config file.
- Parameters:
name (str) – Name of the value
value – Value to be set
doc –
- If it is not None:
if the value is to be removed and it is preceeded by the line containing the given docstring, prefixed by ‘ # ‘, the preceding line with docstring is removed as well.
if the value is to be added, the docstring is added before the value as well.
doc_regex (bool) – If True, the doc parameter can be given as regular expression.