Bopytex/bopytex/worker/compile.py

17 lines
459 B
Python
Raw Normal View History

2022-04-10 14:27:12 +00:00
import subprocess
2022-04-13 20:14:27 +00:00
from bopytex.message import Message
2022-04-13 10:26:04 +00:00
from ..message import SubprocessMessage
2022-04-10 14:27:12 +00:00
def latexmk(args: dict, deps, output):
compile_process = subprocess.Popen(
["latexmk", deps[0]],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True
)
2022-04-13 20:14:27 +00:00
#return SubprocessMessage(compile_process)
return Message(compile_process.wait(), list(compile_process.stdout), list(compile_process.stderr))
2022-04-10 14:27:12 +00:00