Skip to content

Commit

Permalink
Use shutil.copytree instead of distutils (#353)
Browse files Browse the repository at this point in the history
Co-authored-by: Jay Qi <jayqi@users.noreply.github.com>
  • Loading branch information
jayqi and jayqi committed Apr 5, 2024
1 parent 4f9038d commit 644bae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccds/hook_utils/custom_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from distutils.dir_util import copy_tree
from pathlib import Path
from shutil import copytree
from tempfile import TemporaryDirectory
from urllib.request import urlretrieve
from zipfile import ZipFile
Expand Down Expand Up @@ -46,6 +46,6 @@ def write_custom_config(user_input_config):
local_path = tmp

# write whatever the user supplied into the project
copy_tree(local_path, ".")
copytree(local_path, ".")

tmp.cleanup()

0 comments on commit 644bae7

Please sign in to comment.