diff options
author | Botond Hende <nettingman@gmail.com> | 2024-12-04 15:22:10 +0100 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-12-04 15:22:10 +0100 |
commit | 99243bd33a63c076d16bd08914bd1808d4a4112c (patch) | |
tree | 3cd7615401ac1f2a4dac44c51de7b21e27f7b60a /modules/config.py | |
parent | 6168323b858a1eeeafdf9a4e2528df3205d6c2da (diff) |
response manager and libnotify response handler
Diffstat (limited to 'modules/config.py')
-rw-r--r-- | modules/config.py | 6 |
1 files changed, 6 insertions, 0 deletions
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: |