17 lines
459 B
Python
17 lines
459 B
Python
import subprocess
|
|
|
|
from bopytex.message import Message
|
|
from ..message import SubprocessMessage
|
|
|
|
|
|
def latexmk(args: dict, deps, output):
|
|
compile_process = subprocess.Popen(
|
|
["latexmk", deps[0]],
|
|
stdout=subprocess.PIPE,
|
|
stderr=subprocess.PIPE,
|
|
universal_newlines=True
|
|
)
|
|
#return SubprocessMessage(compile_process)
|
|
return Message(compile_process.wait(), list(compile_process.stdout), list(compile_process.stderr))
|
|
|