branches.py 文件源码

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

项目:BookCloud 作者: livro-aberto 项目源码 文件源码
def pdf(project, branch='master'):
    build_path = os.path.abspath(join('repos', project.name, branch.name,
                                      'build/latex'))
    build_latex(project.name, branch.name)
    command = '(cd ' + build_path + '; pdflatex -interaction nonstopmode linux.tex > /tmp/222 || true)'
    os.system(command)
    return flask.send_from_directory(build_path, 'linux.pdf')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号