__init__.py 文件源码

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

项目:apizen 作者: blackmatrix7 项目源码 文件源码
def __call__(self, app=None, **kwargs):
        """
        ???Manager????Options will be ignored.???
        ???flask-script?Manager??app??????????
        ???????
        """
        if app is None:
            app = self.app
            if app is None:
                raise Exception("There is no app here. This is unlikely to work.")

        if isinstance(app, Flask):
            return app

        app = app(**kwargs)
        self.app = app
        return app
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号