|
|
|
|
|
|
configs = yaml.safe_load(f) |
|
|
|
behavior_configs = configs["behaviors"] |
|
|
|
|
|
|
|
for config in behavior_configs.values(): |
|
|
|
for config_name, config in behavior_configs.items(): |
|
|
|
|
|
|
|
# Backwards compat - also put each behavior at the top level for when |
|
|
|
# we're running against old versions |
|
|
|
configs[config_name] = config |
|
|
|
|
|
|
|
with open(dest_path, "w") as f: |
|
|
|
yaml.dump(configs, f) |