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

@@ -32,7 +32,12 @@
"Bash(pip freeze *)", "Bash(pip freeze *)",
"Bash(pip3 freeze *)", "Bash(pip3 freeze *)",
"Bash(/usr/local/bin/docker --version)", "Bash(/usr/local/bin/docker --version)",
"Bash(/Applications/Docker.app/Contents/Resources/bin/docker --version)" "Bash(/Applications/Docker.app/Contents/Resources/bin/docker --version)",
"Bash(ssh root@192.168.0.5 'mkdir -p /mnt/user/appdata/moon-household-budget')",
"Bash(ssh root@192.168.0.5 'docker ps --format \"table {{.Names}}\\\\t{{.Status}}\\\\t{{.Ports}}\" | grep moon')",
"Bash(curl -fsS -o /dev/null -w \"live app: %{http_code}\\\\n\" http://192.168.0.5:8052/)",
"Bash(rsync -av --exclude='.git/' --exclude='data/' --exclude='moon-household-budget-handoff/' /Users/bonnamoon/Projects/fullmoonbakehouse/ root@192.168.0.5:/mnt/user/appdata/moon-household-budget/)",
"Bash(ssh root@192.168.0.5 'cd /mnt/user/appdata/moon-household-budget && docker compose up -d --build 2>&1 | tail -10')"
] ]
} }
} }

View File

@@ -1,7 +1,7 @@
import json import json
import os import os
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"))
ASSETS_FILE = os.path.join(DATA_DIR, "assets.json") ASSETS_FILE = os.path.join(DATA_DIR, "assets.json")
DEFAULT_CARS = [ DEFAULT_CARS = [

View File

@@ -3,7 +3,7 @@ import os
from datetime import date, timedelta from datetime import date, timedelta
import calendar 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") BILLS_FILE = os.path.join(DATA_DIR, "bills.json")

View File

@@ -3,7 +3,7 @@ import os
from datetime import date from datetime import date
import math import math
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"))
DEBTS_FILE = os.path.join(DATA_DIR, "debts.json") DEBTS_FILE = os.path.join(DATA_DIR, "debts.json")
DEBT_LOG_FILE = os.path.join(DATA_DIR, "debt_log.json") DEBT_LOG_FILE = os.path.join(DATA_DIR, "debt_log.json")

View File

@@ -2,7 +2,7 @@ import json
import os import os
from datetime import date from datetime import date
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"))
INCOME_FILE = os.path.join(DATA_DIR, "income_log.json") INCOME_FILE = os.path.join(DATA_DIR, "income_log.json")
INCOME_STREAMS = [ INCOME_STREAMS = [

View File

@@ -4,7 +4,7 @@ from datetime import date
from dateutil.relativedelta import relativedelta from dateutil.relativedelta import relativedelta
import math import math
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"))
MORTGAGE_FILE = os.path.join(DATA_DIR, "mortgage.json") MORTGAGE_FILE = os.path.join(DATA_DIR, "mortgage.json")

View File

@@ -2,7 +2,7 @@ import json
import os import os
from datetime import date from datetime import date
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"))
SINKING_FILE = os.path.join(DATA_DIR, "sinking_funds.json") SINKING_FILE = os.path.join(DATA_DIR, "sinking_funds.json")
FUND_COLORS = { FUND_COLORS = {