From a67b5f845ecc204d09ac8e939e313f52f501392e Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Fri, 18 Feb 2022 23:34:51 -0500 Subject: [PATCH] BUGFIX OP25 - Handler would stay in the OP25 directory, causing profiles to get saved there --- op25Handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/op25Handler.py b/op25Handler.py index 3926ec0..b35f8dd 100644 --- a/op25Handler.py +++ b/op25Handler.py @@ -24,7 +24,8 @@ class OP25Handler: #(threading.Thread): print(f"Starting OP25") - print(os.getcwd()) + cwd = os.getcwd() + print(cwd) os.chdir(self.OP25Dir) @@ -34,6 +35,8 @@ class OP25Handler: #(threading.Thread): "200000", "-o", "25600", "-U", "-f", f"{self.Frequency}e6", "-X", "-2", "-l" "http:0.0.0.0:8080"]) + os.chdir(cwd) + def close_op25(self): print(f"Closing OP25") try: