提交 171a82d4 authored 作者: carriepl's avatar carriepl

Merge pull request #3896 from claymcleod/master

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