def save_configs(self): confs = { "conf_version": "1.0.0", "passcode": self.passcode, "use_metric": self.use_metric, } confs = SupplyFeed.toDictAll(confs) confs = Recipe.toDictAll(confs, metric=self.use_metric) with open(os.path.expanduser("~/.tikibot.yaml"), "w") as f: f.write(yaml.dump(confs))
def save_configs(self): confs = { "conf_version": "1.0.0", "passcode": self.passcode, "use_metric": self.use_metric, "stepsforml": self.stepsforml, "serdevice": self.serdevice, "bgcolor": self.bgcolor, } confs = SupplyFeed.toDictAll(confs) confs = Recipe.toDictAll(confs, metric=self.use_metric) with open(os.path.expanduser("~/.tikibot.yaml"), "w") as f: yaml.dump(confs, f)