From 9986eadaafb4dd40f78242f0c35098293ecbfbed Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Mar 2022 05:11:49 -0400 Subject: [PATCH] popen needs string? --- op25Handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 0d0412e..cd10c66 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -51,8 +51,8 @@ class OP25Handler(threading.Thread): if self.OP25Proc is not None: self.close_op25() - p25_kwargs = ["./rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f", - f"{self.Frequency}e6", "-X", "-2"] + p25_kwargs = "./rx.py", "--args", "rtl", "-N", "LNA:49", "-s", "200000", "-o", "25600", "-U", "-f",\ + f"{self.Frequency}e6", "-X", "-2" p25_stdout = subprocess.DEVNULL p25_stderr = subprocess.STDOUT @@ -62,7 +62,7 @@ class OP25Handler(threading.Thread): os.chdir(self.OP25Dir) if self.HTTP_ENABLED: - p25_kwargs.append(["-l", "http:0.0.0.0:8080"]) + p25_kwargs += "-l", "http:0.0.0.0:8080" p25_stdout = subprocess.STDOUT self.OP25Proc = subprocess.Popen(p25_kwargs, shell=False, stdout=p25_stdout, stderr=p25_stderr)