Fehler im Dateisystem behoben
This commit is contained in:
parent
bccafdde00
commit
b8897ce67c
1 changed files with 1 additions and 4 deletions
|
|
@ -50,10 +50,7 @@ else:
|
||||||
# Kategorien laden
|
# Kategorien laden
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
|
|
||||||
categories_file = Path.home() / "Kategorien.json"
|
categories_file = Path(__file__).parent / "Kategorien.json"
|
||||||
|
|
||||||
if not categories_file.exists():
|
|
||||||
categories_file = Path(__file__).parent / "Kategorien.json"
|
|
||||||
|
|
||||||
with open(categories_file, encoding="utf-8") as f:
|
with open(categories_file, encoding="utf-8") as f:
|
||||||
categories = json.load(f)
|
categories = json.load(f)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue