summaryrefslogtreecommitdiffstats
path: root/main.py
diff options
context:
space:
mode:
authorJavier Sanchez Parra <jsanchez@soleta.eu>2020-03-20 14:52:20 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-03-20 14:53:07 +0100
commit4cd87e987554db0c3105b4717ed07356274ba057 (patch)
treeec579e59dc456315e6f16b5307ddceed611aaf68 /main.py
parentd69841ed97e9f9117dab50233555a9bf30af196b (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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index b72a6f6..f5d41bd 100644
--- a/main.py
+++ b/main.py
@@ -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