Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c6f3bb

Browse files
committed
Ensure _static directory exists before copying CSS.
Fixes #20747.
1 parent 2967365 commit 9c6f3bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/sphinxext/plot_directive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def _copy_css_file(app, exc):
266266
if exc is None and app.builder.format == 'html':
267267
src = cbook._get_data_path('plot_directive/plot_directive.css')
268268
dst = app.outdir / Path('_static')
269+
dst.mkdir(exist_ok=True)
269270
shutil.copy(src, dst)
270271

271272

0 commit comments

Comments
 (0)