From d138a0a21cf07f08785e5d8e6edbfbab87d8fc50 Mon Sep 17 00:00:00 2001 From: zachar1a Date: Thu, 8 Oct 2020 04:34:55 -0500 Subject: [PATCH] #121 fix --- GroundSystem.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/GroundSystem.py b/GroundSystem.py index 1b28685..342a213 100644 --- a/GroundSystem.py +++ b/GroundSystem.py @@ -24,7 +24,9 @@ import shlex import subprocess import sys -from pathlib import Path +import os +import signal +import pathlib from PyQt5.QtWidgets import QApplication, QMainWindow, QMessageBox @@ -36,8 +38,8 @@ __version__ = _version -# this needs to be changed to the path of cfs-groundsystem -ROOTDIR = Path(sys.argv[0]).resolve().parent +#ROOTDIR = Path(sys.argv[0]).resolve().parent +ROOTDIR = pathlib.Path(__file__).parent.absolute() # @@ -71,7 +73,7 @@ def closeEvent(self, evnt): if self.RoutingService: self.RoutingService.stop() print("Stopped routing service") - + os.kill(0, signal.SIGKILL) super().closeEvent(evnt) # Read the selected spacecraft from combo box on GUI