Skip to content

Commit

Permalink
Merge pull request #20748 from QuLogic/plot-static-mkdir
Browse files Browse the repository at this point in the history
Ensure _static directory exists before copying CSS.
  • Loading branch information
QuLogic committed Jul 27, 2021
2 parents 2967365 + 9c6f3bb commit f8f6939
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/matplotlib/sphinxext/plot_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def _copy_css_file(app, exc):
if exc is None and app.builder.format == 'html':
src = cbook._get_data_path('plot_directive/plot_directive.css')
dst = app.outdir / Path('_static')
dst.mkdir(exist_ok=True)
shutil.copy(src, dst)


Expand Down

0 comments on commit f8f6939

Please sign in to comment.