MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _run

Function _run

demo/ai_scientists/web/app.py:369–374  ·  view source on GitHub ↗
(cmd: list[str])

Source from the content-addressed store, hash-verified

367 shutil.copy2(bib, tmp / bib.name)
368
369 def _run(cmd: list[str]) -> subprocess.CompletedProcess:
370 r = subprocess.run(
371 cmd, cwd=str(tmp),
372 stdout=subprocess.PIPE, stderr=subprocess.STDOUT, timeout=120,
373 )
374 return r
375
376 # pdflatex pass 1
377 r1 = _run(["pdflatex", "-interaction=nonstopmode", "main.tex"])

Callers 1

_compile_pdfFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected