def set_value(self, section: str, key: str, value: Any): """Updates a configuration value.""" if not self.config.has_section(section): self.config.add_section(section) self.config.set(section, key, str(value))
Would you like to paste the contents now? cardtool.ini
[Card] CardFormat=CSV CardDelimiter=,