Modifies ConfigParser so config file is passed as parameter (to be used by both teos and cli)

- Modifies ConfigParser
- Adapts __init__ and teosd at teos/
This commit is contained in:
Sergi Delgado Segura
2020-03-21 21:57:17 +01:00
parent d860c9bca6
commit 00a48ce6f5
5 changed files with 6 additions and 19 deletions

View File

@@ -28,9 +28,9 @@ class ConfigLoader:
ones in default / config file.
"""
def __init__(self, data_dir, default_conf, command_line_conf):
def __init__(self, data_dir, conf_file_name, default_conf, command_line_conf):
self.data_dir = data_dir
self.conf_file_path = self.data_dir + "teos.conf"
self.conf_file_path = self.data_dir + conf_file_name
self.conf_fields = default_conf
self.command_line_conf = command_line_conf