mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user