We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25b39d4 commit 6ffc7f3Copy full SHA for 6ffc7f3
lib/matplotlib/sphinxext/plot_directive.py
@@ -264,7 +264,8 @@ def _copy_css_file(app, exc):
264
src = cbook._get_data_path('plot_directive/plot_directive.css')
265
dst = app.outdir / Path('_static')
266
dst.mkdir(exist_ok=True)
267
- shutil.copy(src, dst)
+ # Use copyfile because we do not want to copy src's permissions.
268
+ shutil.copyfile(src, dst / Path('plot_directive.css'))
269
270
271
def setup(app):
0 commit comments