From 41e3736622812ff89b339276dcaa195d337f846c Mon Sep 17 00:00:00 2001 From: Bernd Flemisch <bernd@iws.uni-stuttgart.de> Date: Wed, 27 Jul 2022 12:15:47 +0200 Subject: [PATCH] [bin] replace call to copy_tree from distutils by copytree from shutil --- bin/extract_as_new_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/extract_as_new_module.py b/bin/extract_as_new_module.py index b30b1b704c..5ec2d3e5dc 100755 --- a/bin/extract_as_new_module.py +++ b/bin/extract_as_new_module.py @@ -15,7 +15,7 @@ import textwrap import itertools import glob import multiprocessing as mp -from distutils.dir_util import copy_tree +from shutil import copytree from pathlib import Path from functools import partial @@ -145,7 +145,7 @@ def detectNewModule(): def copySubFolders(subFolder, oldPath, newPath): """Copy folders from old path to new path""" for sub in subFolder: - copy_tree(os.path.join(oldPath, sub), os.path.join(newPath, sub)) + copytree(os.path.join(oldPath, sub), os.path.join(newPath, sub)) def addFoldersToCMakeLists(modulePath, subFolder): -- GitLab