From 6143a19f7f1bf6982688f89b06d24dbd1750e2a1 Mon Sep 17 00:00:00 2001 From: Matthias Jung Date: Sat, 31 Jan 2026 23:15:36 +0100 Subject: [PATCH] fix: bug with symlink in drawings script --- src/build_drawings.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/build_drawings.py b/src/build_drawings.py index a64aed6..401b14e 100644 --- a/src/build_drawings.py +++ b/src/build_drawings.py @@ -36,13 +36,13 @@ def build_drawing(id): file.write(f"\\documentclass{{FiftyOhm}}\\DARCimageOnly{{9cm}}{{{id}include}}") # Symlink photos, so LaTeX can access these assets to render into graphics. - photos_path = pathlib.Path("contents/photos") + photos_path = pathlib.Path("../contents/photos") + foto_link = build_path / "foto" + foto_link.symlink_to(photos_path) + foto_link2 = build_path / "img/foto" - if not foto_link.is_symlink(): - foto_link.symlink_to(photos_path) - if not foto_link2.is_symlink(): - foto_link2.symlink_to(photos_path) + foto_link2.symlink_to(photos_path) # Build the picture: os.system(f"latexmk -lualatex {aux_file}")