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')
评论列表
文章目录