__init__.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:pcbot 作者: pckv 项目源码 文件源码
def call_reload(name: str):
    """ Initiates reload of plugin. """
    # See if the plugin has an on_reload() function, and call that
    if hasattr(plugins[name], "on_reload"):
        if callable(plugins[name].on_reload):
            result = plugins[name].on_reload(name)
            if inspect.isawaitable(result):
                await result
    else:
        await on_reload(name)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号