Update docs for multi-config loading

This commit is contained in:
Matthias
2022-04-08 17:36:50 +02:00
parent 238ff6c9fe
commit 16e64ddf97
2 changed files with 24 additions and 3 deletions

View File

@@ -100,7 +100,8 @@ def load_from_files(files: List[str], base_path: Path = None, level: int = 0) ->
config_tmp = load_config_file(str(file))
if 'add_config_files' in config_tmp:
config_sub = load_from_files(config_tmp['add_config_files'], file.resolve().parent, level + 1)
config_sub = load_from_files(
config_tmp['add_config_files'], file.resolve().parent, level + 1)
files_loaded.extend(config_sub.get('config_files', []))
deep_merge_dicts(config_sub, config_tmp)