Skip to content

Commit fd965dc

Browse files
committed
fix: save progress to script directory instead of CWD
Closes steam-bell-92#1313 DATA_FILE was a relative path causing data to be saved in the current working directory. Progress was lost when script was run from different directories. Same fix pattern as Budget-Tracker (steam-bell-92#1154) and Productivity-Pet (steam-bell-92#1153).
1 parent 4285347 commit fd965dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utilities/Progress-Tracker/Progress-Tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from datetime import datetime
99

1010
# ── Config ────────────────────────────────────────────────────────────────────
11-
DATA_FILE = "completed_projects.json"
11+
DATA_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), "completed_projects.json")
1212

1313
# Load Project Registry from projects_registry.json
1414
REGISTRY_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "projects_registry.json"))

0 commit comments

Comments
 (0)