From 5a8efa888427053689c9d1cd27506613d23c1d83 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Mar 2022 14:01:49 -0400 Subject: [PATCH] idk --- op25Handler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 56c8059..bbca7c3 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -1,3 +1,4 @@ +import shutil import threading import subprocess import asyncio @@ -9,6 +10,7 @@ class OP25Handler(threading.Thread): def __init__(self): super().__init__() self.OP25Dir: str = "/home/pi/op25/op25/gr-op25_repeater/apps" + self.OP25EXE: str = shutil.which("/home/pi/op25/op25/gr-op25_repeater/apps/rx.py") self.OP25Proc = None self.Frequency = None @@ -71,8 +73,8 @@ class OP25Handler(threading.Thread): print(p25_kwargs) - self.OP25Proc = subprocess.Popen(p25_kwargs, executable="/usr/bin/python3", shell=False, - stdout=subprocess.STDOUT, stderr=subprocess.STDOUT, cwd=self.OP25Dir) + self.OP25Proc = subprocess.Popen(p25_kwargs, executable=self.OP25EXE, shell=True, stdout=subprocess.STDOUT, + stderr=subprocess.STDOUT, cwd=self.OP25Dir) #os.chdir(cwd)