From 0f5a8cbc722741982f9486d21a5e3e5cb2c7b991 Mon Sep 17 00:00:00 2001 From: viewit Date: Thu, 4 Jun 2026 12:17:46 +0200 Subject: [PATCH] sync: kobrax_moonraker_bridge.py mit Dev-Repo (VERSION-Lookup-Fix) --- kobrax_moonraker_bridge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kobrax_moonraker_bridge.py b/kobrax_moonraker_bridge.py index 6e02e48..0a3b163 100644 --- a/kobrax_moonraker_bridge.py +++ b/kobrax_moonraker_bridge.py @@ -3973,7 +3973,9 @@ class KobraXBridge: GITEA_RAW_BASE = "https://gitea.it-drui.de/viewit/KX-Bridge-Release/raw/tag" def _read_version(self) -> str: - for base in (pathlib.Path(_BASE), pathlib.Path(_BASE).parent): + # PyInstaller-Onefile entpackt VERSION (per kx-bridge.spec datas) nach + # sys._MEIPASS — daher _WEB_BASE statt _BASE benutzen. + for base in (pathlib.Path(_WEB_BASE), pathlib.Path(_BASE), pathlib.Path(_BASE).parent): p = base / "VERSION" if p.is_file(): return p.read_text(encoding="utf-8").strip()