Skip to content

Commit 93214d7

Browse files
and2345Andreas Kunze
andauthored
fix: output dir creation error when dirname is empty (#19)
Co-authored-by: Andreas Kunze <andreas.kunze@watttron.com>
1 parent abec190 commit 93214d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind11_mkdoc/mkdoc_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ def mkdoc(args, width, output=None):
426426

427427
if output:
428428
try:
429-
os.makedirs(os.path.dirname(output), exist_ok=True)
429+
os.makedirs(os.path.dirname(os.path.abspath(output)), exist_ok=True)
430430
with open(output, 'w') as out_file:
431431
write_header(comments, out_file)
432432
except:

0 commit comments

Comments
 (0)