popen needs string?

This commit is contained in:
Logan Cusano
2022-03-27 05:17:03 -04:00
parent 9986eadaaf
commit f68e794d02

View File

@@ -51,8 +51,11 @@ 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_kwargs = f"./rx.py --args rtl -N LNA:49 -s 200000 -o 25600 -U -f {self.Frequency}e6 -X -2"
p25_stdout = subprocess.DEVNULL
p25_stderr = subprocess.STDOUT
@@ -62,7 +65,7 @@ class OP25Handler(threading.Thread):
os.chdir(self.OP25Dir)
if self.HTTP_ENABLED:
p25_kwargs += "-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)