From b697e0958d551f805edf430b5ebad317657093bc Mon Sep 17 00:00:00 2001 From: Milka64 Date: Mon, 11 Dec 2023 11:55:45 +0100 Subject: [PATCH] fix check if source file exists --- sphinx_d2lang/d2lang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx_d2lang/d2lang.py b/sphinx_d2lang/d2lang.py index ccdfe2e..4cb7df1 100644 --- a/sphinx_d2lang/d2lang.py +++ b/sphinx_d2lang/d2lang.py @@ -31,7 +31,7 @@ class D2langDirective(SphinxDirective): else: layout = 'dagre' if self.arguments: - path = Path(srcdir + self.arguments[0]) + path = Path(srcdir + '/' + self.arguments[0]) if path.is_file(): build_svg(self.arguments[0], srcdir, output_fname, layout) else: