mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
fix: read default-pipeline-config.json
This commit is contained in:
@@ -107,7 +107,7 @@ class PersistenceManager:
|
|||||||
if result.first() is None:
|
if result.first() is None:
|
||||||
self.ap.logger.info('Creating default pipeline...')
|
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())
|
default_pipeline_uuid = str(uuid.uuid4())
|
||||||
pipeline_data = {
|
pipeline_data = {
|
||||||
|
|||||||
Reference in New Issue
Block a user