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.
distutils.(file|dir)_util
1 parent 09956d6 commit e500d87Copy full SHA for e500d87
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
- distutils.file_util.copy_file(f, gallery_dir, update=True)
+ shutil.copyfile(f, gallery_dir)
139
140
source_suffix = [".rst", ".md"]
141
0 commit comments