8000 Backport PR #20748: Ensure _static directory exists before copying CSS. · matplotlib/matplotlib@c7e8507 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7e8507

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #20748: Ensure _static directory exists before copying CSS.
1 parent 51989b4 commit c7e8507

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
@@ -258,6 +258,7 @@ def _copy_css_file(app, exc):
258258
if exc is None and app.builder.format == 'html':
259259
src = cbook._get_data_path('plot_directive/plot_directive.css')
260260
dst = app.outdir / Path('_static')
261+
dst.mkdir(exist_ok=True)
261262
shutil.copy(src, dst)
262263

263264

0 commit comments

Comments
 (0)
0