Don't restart on config changes.

This commit is contained in:
Leo Vasanko 2023-11-21 12:39:02 +00:00
parent 888bc97264
commit 37e06dd412

View File

@ -5,6 +5,7 @@ import msgspec
def readconf() -> dict: def readconf() -> dict:
p = Path.home() / ".droppy/config" # Hardcoded in Droppy p = Path.home() / ".droppy/config" # Hardcoded in Droppy
print("Reading Droppy config", p)
cf = msgspec.json.decode((p / "config.json").read_bytes()) cf = msgspec.json.decode((p / "config.json").read_bytes())
db = msgspec.json.decode((p / "db.json").read_bytes()) db = msgspec.json.decode((p / "db.json").read_bytes())
cf["path"] = p.parent / "files" cf["path"] = p.parent / "files"