From 5fe98bfe0ec070f9bcb029b0e0d4a5113708d055 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 27 Mar 2022 13:29:15 -0400 Subject: [PATCH] Trying to use stdin, executable and shell --- op25Handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/op25Handler.py b/op25Handler.py index 0b8c774..9eba71a 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -71,8 +71,8 @@ class OP25Handler(threading.Thread): print(p25_kwargs) - self.OP25Proc = subprocess.Popen(p25_kwargs, shell=True, stdout=subprocess.STDOUT, stderr=subprocess.STDOUT, - cwd=self.OP25Dir) + self.OP25Proc = subprocess.Popen(p25_kwargs, shell=True, executable="/usr/bin/python3", stdin=None, + stdout=subprocess.STDOUT, stderr=subprocess.STDOUT, cwd=self.OP25Dir) #os.chdir(cwd)