1
0
Fork 0
mirror of synced 2024-06-17 01:54:46 +12:00

small bugfix

This commit is contained in:
Dummerle 2020-12-26 22:11:22 +01:00
parent 493bcba526
commit 4abab4b563

View file

@ -9,7 +9,7 @@ logger = getLogger("Config")
rare_config.read(config_path + "config.ini")
if not os.path.exists(config_path):
os.mkdir(config_path)
os.makedirs(config_path)
rare_config["Rare"] = {
"IMAGE_DIR": os.path.expanduser("~/.rare/images"),
"theme": "dark"
@ -31,6 +31,5 @@ def set_config(new_config: {}):
rare_config.__dict__["_sections"] = new_config
rare_config.write(open(config_path + "config.ini", "w"))
IMAGE_DIR = rare_config["Rare"]["IMAGE_DIR"]
THEME = rare_config["Rare"]["theme"]