test_integration.py 文件源码

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

项目:exec-wrappers 作者: gqmelo 项目源码 文件源码
def _environ_from_activate(activate_script, tmpdir):
    activate_file = tmpdir.join('environ-from-activate') + \
                    get_wrapper_extension()
    activate_file.write('''%s
        python -c "from os import environ; print(dict(environ))"
    ''' % activate_script)
    activate_file.chmod(activate_file.stat().mode | stat.S_IXUSR)
    output = subprocess.check_output(str(activate_file))
    environ_from_activate = eval(output)
    return environ_from_activate
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号