From ae642a804473cbbd2027932b16bfd3f59cc82bf8 Mon Sep 17 00:00:00 2001 From: Ivan Krakhmaliuk Date: Fri, 16 Aug 2024 20:30:32 +0300 Subject: [PATCH] Core: save config data to descriptor --- pylon/core/tools/module/descriptor.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pylon/core/tools/module/descriptor.py b/pylon/core/tools/module/descriptor.py index 9b534da..862134d 100644 --- a/pylon/core/tools/module/descriptor.py +++ b/pylon/core/tools/module/descriptor.py @@ -47,6 +47,7 @@ def __init__(self, context, name, loader, metadata, requirements): # pylint: di # self.path = self.loader.get_local_path() self.config = None + self.config_data = None # self.requirements_base = None self.requirements_path = None @@ -69,9 +70,9 @@ def load_config(self): # custom_config_data = {} if self.context.module_manager.providers["config"].config_data_exists(self.name): - custom_config_data = self._load_yaml_data( - self.context.module_manager.providers["config"].get_config_data(self.name), "custom" - ) + self.config_data = \ + self.context.module_manager.providers["config"].get_config_data(self.name) + custom_config_data = self._load_yaml_data(self.config_data, "custom") # yaml_data = {} yaml_data = recursive_merge(yaml_data, base_config_data)