Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9c6f3bb

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎lib/matplotlib/sphinxext/plot_directive.py

Copy file name to clipboardExpand all lines: lib/matplotlib/sphinxext/plot_directive.py
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.