From 564fa239dad4b542b41d7c171ccb97c7adbc9c17 Mon Sep 17 00:00:00 2001 From: Roby Date: Tue, 1 Dec 2020 01:49:24 +0100 Subject: [PATCH] Update gps_data.py --- gps_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gps_data.py b/gps_data.py index 09b67f6..faaab8b 100644 --- a/gps_data.py +++ b/gps_data.py @@ -242,13 +242,13 @@ if __name__ == '__main__': # CLI argument parser - handles picking up the config file from the command line, and sending a "help" message parser = argparse.ArgumentParser() - parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually hblink.cfg)') + parser.add_argument('-c', '--config', action='store', dest='CONFIG_FILE', help='/full/path/to/config.file (usually gps_data.cfg)') parser.add_argument('-l', '--logging', action='store', dest='LOG_LEVEL', help='Override config file logging level.') cli_args = parser.parse_args() # Ensure we have a path for the config file, if one wasn't specified, then use the default (top of file) if not cli_args.CONFIG_FILE: - cli_args.CONFIG_FILE = os.path.dirname(os.path.abspath(__file__))+'/hblink.cfg' + cli_args.CONFIG_FILE = os.path.dirname(os.path.abspath(__file__))+'/gps_data.cfg' # Call the external routine to build the configuration dictionary CONFIG = config.build_config(cli_args.CONFIG_FILE)