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

@@ -1,7 +1,7 @@
import json
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")
DEFAULT_CARS = [