From db2f3fc8e5f0d65e5a771200c8be9104343f1161 Mon Sep 17 00:00:00 2001 From: Smittix Date: Fri, 27 Feb 2026 11:17:19 +0000 Subject: [PATCH] fix: use sys.executable for radiosonde subprocess to find venv packages The subprocess was launched with bare 'python' which on Debian doesn't exist (python3 only) and wouldn't have access to the venv-installed radiosonde dependencies anyway. Using sys.executable ensures the same interpreter (with all installed packages) is used. Co-Authored-By: Claude Opus 4.6 --- routes/radiosonde.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes/radiosonde.py b/routes/radiosonde.py index f95698e..66838a8 100644 --- a/routes/radiosonde.py +++ b/routes/radiosonde.py @@ -12,6 +12,7 @@ import os import queue import shutil import socket +import sys import subprocess import threading import time @@ -416,7 +417,7 @@ def start_radiosonde(): # Build command cfg_dir = os.path.dirname(os.path.abspath(cfg_path)) if auto_rx_path.endswith('.py'): - cmd = ['python', auto_rx_path, '-c', cfg_dir] + cmd = [sys.executable, auto_rx_path, '-c', cfg_dir] else: cmd = [auto_rx_path, '-c', cfg_dir]