__init__.py 文件源码

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

项目:ooni-measurements 作者: TheTorProject 项目源码 文件源码
def shell():
    """Run a Python shell in the app context."""

    try:
        import IPython
    except ImportError:
        IPython = None

    if IPython is not None:
        IPython.embed(banner1='', user_ns=current_app.make_shell_context())
    else:
        import code

        code.interact(banner='', local=current_app.make_shell_context())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号