Skip to content

Commit

Permalink
Remove detached process flag when running lualatex
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Jul 8, 2024
1 parent 7ad45c6 commit 3c4aa35
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions gramps/gen/plug/docgen/treedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@

if win():
_LATEX_FOUND = search_for("lualatex.exe")
DETACHED_PROCESS = 8
else:
_LATEX_FOUND = search_for("lualatex")

Expand Down Expand Up @@ -805,16 +804,7 @@ def close(self):
with tempfile.TemporaryDirectory() as tmpdir:
basename = os.path.basename(self._filename)
args = ["lualatex", "-output-directory", tmpdir, "-jobname", basename[:-4]]
if win():
proc = Popen(
args,
stdin=PIPE,
stdout=PIPE,
stderr=PIPE,
creationflags=DETACHED_PROCESS,
)
else:
proc = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
proc = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE)
proc.communicate(input=self._tex.getvalue().encode("utf-8"))

temp_output_file = os.path.join(tmpdir, basename)
Expand Down

0 comments on commit 3c4aa35

Please sign in to comment.