From 9593b2717236bc78d849860f8f7846f4950d822f Mon Sep 17 00:00:00 2001 From: adulouis <73531153+adulouis@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:22:17 +0000 Subject: [PATCH] Update utils.py --- URDF_Exporter/utils/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/URDF_Exporter/utils/utils.py b/URDF_Exporter/utils/utils.py index 10f6b1a..585b015 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 copy_tree #this is where the file is from 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) + copy_tree(package_dir, save_dir,dirs_exist_ok=True) def update_cmakelists(save_dir, package_name): file_name = save_dir + '/CMakeLists.txt'