From 377acd177bfbfe49c71ebdbe2fd69d8a16b5fa75 Mon Sep 17 00:00:00 2001 From: noO0oOo0ob <625171796@qq.com> Date: Mon, 5 Feb 2024 16:31:59 +0800 Subject: [PATCH] log plugin enabled --- lyrebird/plugins/plugin_manager.py | 2 ++ lyrebird/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lyrebird/plugins/plugin_manager.py b/lyrebird/plugins/plugin_manager.py index 04b3c8af..52962ca3 100644 --- a/lyrebird/plugins/plugin_manager.py +++ b/lyrebird/plugins/plugin_manager.py @@ -33,8 +33,10 @@ def reload(self): self.setup_plugins() def setup_plugins(self): + application.config['extension.plugin.enable'] = [] # TODO register plugins pb for p_name, plugin in self.plugins.items(): + application.config['extension.plugin.enable'].append(p_name) view_static_folder_name = plugin.manifest.view[0] view_entry_file = plugin.manifest.view[1] plugin_static_folder = f"{plugin.location}/{view_static_folder_name}" diff --git a/lyrebird/version.py b/lyrebird/version.py index 3354da2a..ec01826c 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 25, 0) +IVERSION = (2, 25, 1) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION