Meta

Elements:

SetContext(key, value)

Set static context for this sequence.

StoreContext([name, verbose])

Store static context.

UpdateContextFromStatic()

Update runtime context with the static one.

Elements

class SetContext(key, value)[исходный код]

Set static context for this sequence.

Static context does not automatically update runtime context. Use UpdateContextFromStatic for that.

Static context can be used during the initialisation phase to set output directories, Cache names, etc. There is no way to update static context from runtime one.

key is a string representing a (possibly nested) dictionary key. value is its value. See str_to_dict() for details.

class StoreContext(name='', verbose=False)[исходный код]

Store static context. Use for debugging.

name and verbose affect output and representation.

class UpdateContextFromStatic[исходный код]

Update runtime context with the static one.

Note that for runtime context later elements update previous values, but for static context it is the opposite (external and previous elements take precedence).