Skip to content

Commit

Permalink
Core: save config data to descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
LifeDJIK committed Aug 16, 2024
1 parent 5ac1eb7 commit ae642a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pylon/core/tools/module/descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit ae642a8

Please sign in to comment.