From 4e839eecb4522f463288a9dfec034b7883ba5229 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Mar 2022 13:50:24 -0400 Subject: [PATCH] idk --- op25Handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 53c1270..6e489e4 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -51,7 +51,7 @@ class OP25Handler(threading.Thread): if self.OP25Proc is not None: self.close_op25() - p25_kwargs = [f"./rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f", + p25_kwargs = [f"{self.OP25Dir}/rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f", f"{self.Frequency}e6", "-X", "-2"] #p25_kwargs = f"{self.OP25Dir}/rx.py --args rtl -N LNA:49 -s 200000 -o 25600 -U -f {self.Frequency}e6 -X -2" @@ -71,7 +71,8 @@ class OP25Handler(threading.Thread): print(p25_kwargs) - self.OP25Proc = subprocess.Popen(p25_kwargs, executable="/usr/bin/python3", shell=True, cwd=self.OP25Dir) + self.OP25Proc = subprocess.Popen(p25_kwargs, executable="/usr/bin/python3", shell=False, + stdout=subprocess.STDOUT, stderr=subprocess.STDOUT, cwd=self.OP25Dir) #os.chdir(cwd)