small bugfix
This commit is contained in:
parent
493bcba526
commit
4abab4b563
|
@ -9,7 +9,7 @@ logger = getLogger("Config")
|
||||||
rare_config.read(config_path + "config.ini")
|
rare_config.read(config_path + "config.ini")
|
||||||
|
|
||||||
if not os.path.exists(config_path):
|
if not os.path.exists(config_path):
|
||||||
os.mkdir(config_path)
|
os.makedirs(config_path)
|
||||||
rare_config["Rare"] = {
|
rare_config["Rare"] = {
|
||||||
"IMAGE_DIR": os.path.expanduser("~/.rare/images"),
|
"IMAGE_DIR": os.path.expanduser("~/.rare/images"),
|
||||||
"theme": "dark"
|
"theme": "dark"
|
||||||
|
@ -31,6 +31,5 @@ def set_config(new_config: {}):
|
||||||
rare_config.__dict__["_sections"] = new_config
|
rare_config.__dict__["_sections"] = new_config
|
||||||
rare_config.write(open(config_path + "config.ini", "w"))
|
rare_config.write(open(config_path + "config.ini", "w"))
|
||||||
|
|
||||||
|
|
||||||
IMAGE_DIR = rare_config["Rare"]["IMAGE_DIR"]
|
IMAGE_DIR = rare_config["Rare"]["IMAGE_DIR"]
|
||||||
THEME = rare_config["Rare"]["theme"]
|
THEME = rare_config["Rare"]["theme"]
|
||||||
|
|
Loading…
Reference in a new issue