fix check if source file exists
This commit is contained in:
parent
1bd0989d63
commit
b697e0958d
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ class D2langDirective(SphinxDirective):
|
||||||
else:
|
else:
|
||||||
layout = 'dagre'
|
layout = 'dagre'
|
||||||
if self.arguments:
|
if self.arguments:
|
||||||
path = Path(srcdir + self.arguments[0])
|
path = Path(srcdir + '/' + self.arguments[0])
|
||||||
if path.is_file():
|
if path.is_file():
|
||||||
build_svg(self.arguments[0], srcdir, output_fname, layout)
|
build_svg(self.arguments[0], srcdir, output_fname, layout)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue