From 5b9c0fe36d21948d0cef13c0939de94128aa90c1 Mon Sep 17 00:00:00 2001 From: Oyefusi Samuel <105239214+Oyefusi-Samuel@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:40:32 +0100 Subject: [PATCH] Update utils.py to meet current python 3 function s --- 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..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'