Configuration::Import keeps track of it's node, added function to Configuration::Config to set the Import's hhArchiveBase
This commit is contained in:
parent
2bf3aaa1bc
commit
ae04f5562a
|
@ -266,6 +266,7 @@ class Popup:
|
|||
|
||||
class Import:
|
||||
def __init__(self, node):
|
||||
self.node = node
|
||||
self.interval = node.getAttribute("interval")
|
||||
self.callFpdbHud = node.getAttribute("callFpdbHud")
|
||||
self.hhArchiveBase = node.getAttribute("hhArchiveBase")
|
||||
|
@ -401,6 +402,8 @@ class Config:
|
|||
db_pass = df_parms['db-password'])
|
||||
self.save(file=os.path.join(self.default_config_path, "HUD_config.xml"))
|
||||
|
||||
def set_hhArchiveBase(self, path):
|
||||
self.imp.node.setAttribute("hhArchiveBase", path)
|
||||
|
||||
def find_config(self):
|
||||
"""Looks in cwd and in self.default_config_path for a config file."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user