feat(configure): support for multiple mux config files in TT_CONFIG

This commit is contained in:
Uri Shaked
2025-11-20 11:13:11 +02:00
parent ef5191cec2
commit 5f2a734ef9
2 changed files with 20 additions and 4 deletions
+9
View File
@@ -65,3 +65,12 @@ def write_config(config: dict, basename: str, formats: Iterable[str] = ("json",)
write_yaml_config(config, file)
else:
raise ConfigFileError("Unexpected configuration file format: {fmt}")
def merge_dicts(a: dict, b: dict, path=[]):
for key in b:
if key in a and isinstance(a[key], dict) and isinstance(b[key], dict):
merge_dicts(a[key], b[key], path + [str(key)])
else:
a[key] = b[key]
return a