提交 2163e1f5 authored 作者: Clay McLeod's avatar Clay McLeod

Bug fix: don't try to os.mkdirs on an empty directory

上级 9a0ab543
......@@ -81,7 +81,7 @@ def d3viz(fct, outfile, copy_deps=True, *args, **kwargs):
# Create output directory if not existing
outdir = os.path.dirname(outfile)
if not os.path.exists(outdir):
if not outdir == '' and not os.path.exists(outdir):
os.makedirs(outdir)
# Read template HTML file
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论