weaver.config
¶
Module Contents¶
-
weaver.config.
get_weaver_configuration
(container) → AnyStr[source]¶ Obtains the defined operation configuration mode.
Returns: one value amongst weaver.config.WEAVER_CONFIGURATIONS
.
-
weaver.config.
get_weaver_config_file
(file_path, default_config_file) → AnyStr[source]¶ Validates that the specified configuration file can be found, or falls back to the default one.
Handles ‘relative’ paths for settings in
WEAVER_DEFAULT_INI_CONFIG
referring to other configuration files. Default file must be one ofWEAVER_DEFAULT_CONFIGS
. If the default file cannot be found, it is auto-generated from the corresponding example file.Parameters: - file_path – path to a configuration file (can be relative if resolvable or matching a default file name)
- default_config_file – one of
WEAVER_DEFAULT_CONFIGS
.