fix: components.yaml encoding error on windows

This commit is contained in:
Junyan Qin
2025-02-24 15:00:17 +08:00
parent ef044f4fc7
commit 06adeb72c4

View File

@@ -139,7 +139,7 @@ class ComponentDiscoveryEngine:
def load_component_manifest(self, path: str, owner: str = 'builtin', no_save: bool = False) -> Component:
"""加载组件清单"""
with open(path, 'r') as f:
with open(path, 'r', encoding='utf-8') as f:
manifest = yaml.safe_load(f)
comp = Component(
owner=owner,