diff options
author | Javier Sanchez Parra <jsanchez@soleta.eu> | 2020-03-20 14:52:20 +0100 |
---|---|---|
committer | Alvaro Neira Ayuso <aneira@soleta.eu> | 2020-03-20 14:53:07 +0100 |
commit | 4cd87e987554db0c3105b4717ed07356274ba057 (patch) | |
tree | ec579e59dc456315e6f16b5307ddceed611aaf68 /main.py | |
parent | d69841ed97e9f9117dab50233555a9bf30af196b (diff) |
Make OG_PATH public
This commit changes the OG_PATH to a public varible of the class
ogConfig. This way we improve the configurability of the path.
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -14,7 +14,8 @@ from signal import signal, SIGPIPE, SIG_DFL def main(): signal(SIGPIPE, SIG_DFL) ogconfig = ogConfig() - if (not ogconfig.parser_file('cfg/ogagent.cfg')): + config_path = f'{ogConfig.OG_PATH}ogClient/cfg/ogagent.cfg' + if (not ogconfig.parser_file(config_path)): print ('Error: Parsing configuration file') return 0 |