From b7f09397875d83dc51bad8af93b43c3e77fe3888 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sat, 9 Apr 2022 04:32:12 -0400 Subject: [PATCH] //WIP V3 GQRX Changes - Sending output to devnull, except for error --- op25Handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/op25Handler.py b/op25Handler.py index 01e4006..be20bfc 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -71,7 +71,8 @@ class OP25Handler(threading.Thread): self.logger.debug(f"OP25 Keyword Args: {p25_kwargs}") - self.OP25Proc = subprocess.Popen(p25_kwargs, executable=self.OP25EXE, shell=False, cwd=self.OP25Dir) + self.OP25Proc = subprocess.Popen(p25_kwargs, executable=self.OP25EXE, shell=False, cwd=self.OP25Dir, + stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) def close_op25(self): self.logger.info(f"Closing OP25")