Fix DATA_DIR env var in all modules

This commit is contained in:
Bonna
2026-06-06 14:29:13 -05:00
parent 481f26d530
commit 9218994cce
7 changed files with 12 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ import os
from datetime import date, timedelta
import calendar
DATA_DIR = os.path.join(os.path.dirname(__file__), "data")
DATA_DIR = os.environ.get("DATA_DIR", os.path.join(os.path.dirname(__file__), "data"))
BILLS_FILE = os.path.join(DATA_DIR, "bills.json")