From b28817c0c637195de0f43acb5bbe1cfbf87a792b Mon Sep 17 00:00:00 2001 From: Neal Probert Date: Fri, 22 Oct 2021 10:08:45 -0400 Subject: [PATCH] Change config file name --- gps_tool/gps_tool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gps_tool/gps_tool.py b/gps_tool/gps_tool.py index b93d223..f76c14a 100755 --- a/gps_tool/gps_tool.py +++ b/gps_tool/gps_tool.py @@ -41,6 +41,7 @@ fix_mode = [ '0=None', '1=No', '2=2D', '3=3D' ]; +config_file = "gps_tool.yaml" gpsd_host="127.0.0.1" gpsd_report = () @@ -286,8 +287,8 @@ class QtGPSWindow(MainWindow): self.log_enabled = 0 sys.exit(0) -if os.path.isfile('config.yaml'): - with open('config.yaml') as f: +if os.path.isfile(config_file): + with open(config_file) as f: config = yaml.load(f, Loader=yaml.FullLoader) if 'gpsd_host' in config: gpsd_host = config['gpsd_host']