Skip to content

Commit 0923a0d

Browse files
authored
Use path to document directly. (#80)
1 parent 37c3040 commit 0923a0d

File tree

3 files changed

+1
-44
lines changed

3 files changed

+1
-44
lines changed

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ typing = [
3939
[project.entry-points.pytask]
4040
pytask_latex = "pytask_latex.plugin"
4141

42-
[tool.rye]
43-
managed = true
44-
4542
[tool.hatch.build.hooks.vcs]
4643
version-file = "src/pytask_latex/_version.py"
4744

src/pytask_latex/compilation_steps.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def compilation_step(path_to_tex: Path, path_to_document: Path):
1818
from typing import Any
1919
from typing import Callable
2020

21-
from pytask_latex.path import relative_to
2221
from pytask_latex.utils import to_list
2322

2423
if TYPE_CHECKING:
@@ -38,9 +37,7 @@ def latexmk(
3837

3938
def run_latexmk(path_to_tex: Path, path_to_document: Path) -> None:
4039
job_name_opt = [f"--jobname={path_to_document.stem}"]
41-
out_dir_opt = [
42-
f"--output-directory={relative_to(path_to_tex, path_to_document.parent)}"
43-
]
40+
out_dir_opt = [f"--output-directory={path_to_document.parent.as_posix()}"]
4441
cmd = ["latexmk", *options, *job_name_opt, *out_dir_opt, path_to_tex.as_posix()]
4542
subprocess.run(cmd, check=True) # noqa: S603
4643

src/pytask_latex/path.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)