diff --git a/URDF_Exporter/utils/utils.py b/URDF_Exporter/utils/utils.py index 10f6b1a..925b833 100644 --- a/URDF_Exporter/utils/utils.py +++ b/URDF_Exporter/utils/utils.py @@ -9,7 +9,7 @@ import os.path, re from xml.etree import ElementTree from xml.dom import minidom -from distutils.dir_util import copy_tree +from shutil import copytree import fileinput import sys @@ -149,7 +149,7 @@ def copy_package(save_dir, package_dir): except: pass try: os.mkdir(save_dir + '/urdf') except: pass - copy_tree(package_dir, save_dir) + copytree(package_dir, save_dir, dirs_exist_ok=True) def update_cmakelists(save_dir, package_name): file_name = save_dir + '/CMakeLists.txt'