From 57f3af062162b09995b04a1171daaeb5db132baf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B6rfelt?= Date: Sat, 29 Apr 2023 10:56:05 +0100 Subject: [PATCH] fix windows path again --- examples/note_export.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/note_export.py b/examples/note_export.py index 1dd400b..d010b50 100644 --- a/examples/note_export.py +++ b/examples/note_export.py @@ -114,7 +114,8 @@ def main(): f"Valid formats: {valid_output_formats}." ) # special arguments for some output formats - create_custom_css_file(Path(tmpdirname) / "custom.css") + custom_css_file = str(Path(tmpdirname) / "custom.css") + create_custom_css_file(custom_css_file) format_kwargs = { # https://github.com/NicklasTegner/pypandoc/issues/186#issuecomment-673282133 "pdf": { @@ -125,7 +126,7 @@ def main(): "--metadata", f"title={candidate.title}", "--css", - Path(tmpdirname) / "custom.css", + f"file:///{custom_css_file}", ], } }