From 99243bd33a63c076d16bd08914bd1808d4a4112c Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Wed, 4 Dec 2024 15:22:10 +0100 Subject: response manager and libnotify response handler --- modules/config.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/config.py') diff --git a/modules/config.py b/modules/config.py index b0fc624..1a5865b 100644 --- a/modules/config.py +++ b/modules/config.py @@ -15,15 +15,21 @@ class Config: self.intents_dir = "" self.responses_dir = "" + self.resources_dir = "" self.applications_dir = "" self.lock = "" + self.hestia_images = "" + def update(self, **entries) -> None: self.__dict__.update(entries) self.intents_dir = Config.__convert_to_absolute_path(self.intents_dir) self.responses_dir = Config.__convert_to_absolute_path(self.responses_dir) + self.resources_dir = Config.__convert_to_absolute_path(self.resources_dir) + + self.hestia_images = os.path.join(self.resources_dir, "hestia_images") @staticmethod def __convert_to_absolute_path(path: str) -> str: -- cgit v1.2.3-70-g09d2