From c7e85074aa38997417b0b1a596786164237ecce6 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 27 Jul 2021 19:15:15 -0400 Subject: [PATCH] Backport PR #20748: Ensure _static directory exists before copying CSS. --- lib/matplotlib/sphinxext/plot_directive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/matplotlib/sphinxext/plot_directive.py b/lib/matplotlib/sphinxext/plot_directive.py index 565f0b1baed7..9433393b6dd7 100644 --- a/lib/matplotlib/sphinxext/plot_directive.py +++ b/lib/matplotlib/sphinxext/plot_directive.py @@ -258,6 +258,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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy