8000 Merge pull request #20748 from QuLogic/plot-static-mkdir · matplotlib/matplotlib@f8f6939 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8f6939

Browse files
authored
Merge pull request #20748 from QuLogic/plot-static-mkdir
Ensure _static directory exists before copying CSS.
2 parents 2967365 + 9c6f3bb commit f8f6939

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)
0