mirror of
https://github.com/smittix/intercept.git
synced 2026-07-08 01:28:13 -07:00
fix: set cwd for radiosonde subprocess so autorx package imports resolve
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -420,6 +420,9 @@ def start_radiosonde():
|
|||||||
else:
|
else:
|
||||||
cmd = [auto_rx_path, '-c', cfg_dir]
|
cmd = [auto_rx_path, '-c', cfg_dir]
|
||||||
|
|
||||||
|
# Set cwd to the auto_rx directory so 'from autorx.scan import ...' works
|
||||||
|
auto_rx_dir = os.path.dirname(os.path.abspath(auto_rx_path))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logger.info(f"Starting radiosonde_auto_rx: {' '.join(cmd)}")
|
logger.info(f"Starting radiosonde_auto_rx: {' '.join(cmd)}")
|
||||||
app_module.radiosonde_process = subprocess.Popen(
|
app_module.radiosonde_process = subprocess.Popen(
|
||||||
@@ -427,6 +430,7 @@ def start_radiosonde():
|
|||||||
stdout=subprocess.DEVNULL,
|
stdout=subprocess.DEVNULL,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
start_new_session=True,
|
start_new_session=True,
|
||||||
|
cwd=auto_rx_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Wait briefly for process to start
|
# Wait briefly for process to start
|
||||||
|
|||||||
Reference in New Issue
Block a user