Skip to content

Commit

Permalink
Set cwd for LaTex run
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsieurV committed Jun 28, 2024
1 parent bfab553 commit 0c1447b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2024-06-28-1

* Set `cwd` for latexrun.py so the `filecontents` directives can work as expected #42

## 2023-06-12-1

* Timeout long LaTeX compilations and prevent zombie processes (the timeout is of 100 seconds for now)
Expand Down
1 change: 1 addition & 0 deletions latexonhttp/latexrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,7 @@ def _execute(self):
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
cwd=self.__obj_dir,
)
stdout, has_errors, missing_includes = self.__feed_terminal(p.stdout)
status = p.wait()
Expand Down
Binary file modified samples/eps-include/hbghlyj-sample.pdf
Binary file not shown.
1 change: 0 additions & 1 deletion samples/eps-include/hbghlyj-sample.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
\documentclass{article}
\usepackage[outdir=./]{epstopdf}
\begin{filecontents}{1.eps}
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 269 359 342 432
Expand Down

0 comments on commit 0c1447b

Please sign in to comment.