From 9cfdebe553babbee6a95e3ac4b4d9d7b3f13a953 Mon Sep 17 00:00:00 2001 From: serversdwn Date: Tue, 17 Mar 2026 03:40:04 -0400 Subject: [PATCH] fix: watcher correctly uses AppData directory, not program files. --- series3_watcher.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/series3_watcher.py b/series3_watcher.py index d3772c5..b2f72ca 100644 --- a/series3_watcher.py +++ b/series3_watcher.py @@ -319,9 +319,12 @@ def run_watcher(state: Dict[str, Any], stop_event: threading.Event) -> None: """ if getattr(sys, "frozen", False): here = os.path.dirname(os.path.abspath(sys.executable)) + _appdata = os.environ.get("LOCALAPPDATA") or os.environ.get("APPDATA") or here + config_dir = os.path.join(_appdata, "Series3Watcher") else: here = os.path.dirname(os.path.abspath(__file__)) or "." - config_path = os.path.join(here, "config.ini") + config_dir = here + config_path = os.path.join(config_dir, "config.ini") state["status"] = "starting" state["units"] = []