This commit is contained in:
Logan Cusano
2022-03-27 14:01:49 -04:00
parent e0dba3be4e
commit 5a8efa8884

View File

@@ -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)