From f11e345dbf4892ae57fe0ffded5f78febb26dc21 Mon Sep 17 00:00:00 2001 From: Javier Sanchez Parra Date: Mon, 23 Mar 2020 15:58:57 +0100 Subject: Rename config file This commit changes the name of the config file from ogagent.cfg to ogclient.cfg. --- cfg/ogagent.cfg | 6 ------ cfg/ogclient.cfg | 6 ++++++ main.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 cfg/ogagent.cfg create mode 100644 cfg/ogclient.cfg diff --git a/cfg/ogagent.cfg b/cfg/ogagent.cfg deleted file mode 100644 index 34939d2..0000000 --- a/cfg/ogagent.cfg +++ /dev/null @@ -1,6 +0,0 @@ -[opengnsys] -ip=127.0.0.1 -port=1234 -url=https://127.0.0.1/opengnsys/varios/menubrowser.php -# Log Level, if ommited, will be set to INFO -log=DEBUG diff --git a/cfg/ogclient.cfg b/cfg/ogclient.cfg new file mode 100644 index 0000000..34939d2 --- /dev/null +++ b/cfg/ogclient.cfg @@ -0,0 +1,6 @@ +[opengnsys] +ip=127.0.0.1 +port=1234 +url=https://127.0.0.1/opengnsys/varios/menubrowser.php +# Log Level, if ommited, will be set to INFO +log=DEBUG diff --git a/main.py b/main.py index f5d41bd..0337d2f 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,7 @@ from signal import signal, SIGPIPE, SIG_DFL def main(): signal(SIGPIPE, SIG_DFL) ogconfig = ogConfig() - config_path = f'{ogConfig.OG_PATH}ogClient/cfg/ogagent.cfg' + config_path = f'{ogConfig.OG_PATH}ogClient/cfg/ogclient.cfg' if (not ogconfig.parser_file(config_path)): print ('Error: Parsing configuration file') return 0 -- cgit v1.2.3-18-g5258