跳至主要內容

liteyuki.plugins.plugin_loader

远野千束小于 1 分钟

liteyuki.plugins.plugin_loader

说明: Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved

@Time : 2024/8/11 下午10:02 @Author : snowykami @Email : snowykami@outlook.com @File : init.py.py @Software: PyCharm

def default_plugins_loader()

说明: 默认插件加载器,应在初始化时调用

源代码在GitHub上查看
def default_plugins_loader():
    """
    默认插件加载器,应在初始化时调用
    """
    for plugin in get_config('liteyuki.plugins', []):
        load_plugin(plugin)
    for plugin_dir in get_config('liteyuki.plugin_dirs', ['src/liteyuki_plugins']):
        load_plugins(plugin_dir)