0

I have 2 yaml files one has the default values of some settings and anther has null values and will be overridden when there are some changes. There is a set to default button that should set the settings to their default values. I want the yaml file of the customized settings to be overriden by the values of the defaultyaml file

I tried with dump and write but didn't quite work.

Yaman Jain
  • 1,254
  • 11
  • 16
  • 1
    You decode the YAML files, manipulate the resulting data structures in some way, and write a new data structure out to a YAML file. Your question is entirely about the middle step, independent of YAML itself. – chepner Nov 29 '22 at 19:50
  • You could use an [`!include` constructor as of this answer](https://stackoverflow.com/a/9577670/20599896) – Cpt.Hook Nov 29 '22 at 22:14
  • Try hydra / omegaconf packages – Alexey S. Larionov Nov 30 '22 at 09:41

0 Answers0