Config file is now updated after changing config property

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-07-04 15:55:55 +02:00
parent e805034b58
commit 75a5d9458b

View File

@ -71,6 +71,9 @@ def set_property(key: str, value: str) -> None:
section, prop = tuple(key.split(".")) section, prop = tuple(key.split("."))
parser.set(section, prop, value) parser.set(section, prop, value)
with open(config_file, "w") as file:
parser.write(file)
def list_property_values() -> None: def list_property_values() -> None:
parser = configparser.ConfigParser() parser = configparser.ConfigParser()