__init__.py 文件源码

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

项目:dfkernel 作者: dataflownb 项目源码 文件源码
def setup():
    """setup temporary env for tests"""
    global tmp
    tmp = tempfile.mkdtemp()
    patchers[:] = [
        patch.dict(os.environ, {
            'HOME': tmp,
            # Let tests work with --user install when HOME is changed:
            'PYTHONPATH': os.pathsep.join(sys.path),
        }),
    ]
    for p in patchers:
        p.start()

    # install IPython in the temp home:
    install(user=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号