BaseDIR korrigiert

This commit is contained in:
hubobel 2026-06-20 18:01:48 +02:00
parent fafb4321f9
commit 88c8fac003

View file

@ -62,10 +62,9 @@ with open(categories_file, encoding="utf-8") as f:
# Verzeichnisse bestimmen
# --------------------------------------------------
base_dir = Path.home() / "Transaktionen"
BASE_DIR = Path(__file__).resolve().parent
if not base_dir.exists():
base_dir = Path(__file__).parent / "Transaktionen"
base_dir = BASE_DIR / "Transaktionen"
year_dir = base_dir / str(year)