From f216505237a4336668d95a3dd0c41127fc2a4e45 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Sun, 16 Nov 2025 18:12:29 +0800 Subject: [PATCH] fix: read default-pipeline-config.json --- src/langbot/pkg/persistence/mgr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/langbot/pkg/persistence/mgr.py b/src/langbot/pkg/persistence/mgr.py index 8390a506..b0de264e 100644 --- a/src/langbot/pkg/persistence/mgr.py +++ b/src/langbot/pkg/persistence/mgr.py @@ -107,7 +107,7 @@ class PersistenceManager: if result.first() is None: self.ap.logger.info('Creating default pipeline...') - pipeline_config = json.load(open('templates/default-pipeline-config.json', 'r', encoding='utf-8')) + pipeline_config = json.load(importutil.read_resource_file('templates/default-pipeline-config.json')) default_pipeline_uuid = str(uuid.uuid4()) pipeline_data = {