idk
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import shutil
|
||||
import threading
|
||||
import subprocess
|
||||
import asyncio
|
||||
@@ -9,6 +10,7 @@ class OP25Handler(threading.Thread):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.OP25Dir: str = "/home/pi/op25/op25/gr-op25_repeater/apps"
|
||||
self.OP25EXE: str = shutil.which("/home/pi/op25/op25/gr-op25_repeater/apps/rx.py")
|
||||
self.OP25Proc = None
|
||||
|
||||
self.Frequency = None
|
||||
@@ -71,8 +73,8 @@ class OP25Handler(threading.Thread):
|
||||
|
||||
print(p25_kwargs)
|
||||
|
||||
self.OP25Proc = subprocess.Popen(p25_kwargs, executable="/usr/bin/python3", shell=False,
|
||||
stdout=subprocess.STDOUT, stderr=subprocess.STDOUT, cwd=self.OP25Dir)
|
||||
self.OP25Proc = subprocess.Popen(p25_kwargs, executable=self.OP25EXE, shell=True, stdout=subprocess.STDOUT,
|
||||
stderr=subprocess.STDOUT, cwd=self.OP25Dir)
|
||||
|
||||
#os.chdir(cwd)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user