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 2b5ca16 commit 4524838Copy full SHA for 4524838
docs/source/conf.py
@@ -18,9 +18,9 @@
18
# add these directories to sys.path here. If the directory is relative to the
19
# documentation root, use os.path.abspath to make it absolute, like shown here.
20
#
21
+import distutils.file_util
22
import glob
23
import os
-import shutil
24
import sys
25
from typing import Any
26
@@ -135,7 +135,7 @@
135
# Copy .md files from source dir to gallery dir
136
for f in glob.glob(os.path.join(source_dir, "*.md")):
137
138
- shutil.copyfile(f, gallery_dir)
+ distutils.file_util.copy_file(f, gallery_dir, update=True)
139
140
source_suffix = [".rst", ".md"]
141
0 commit comments