From 7096add4fd88688254739c68cfa96e0bc29521f6 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 9 Feb 2024 12:54:19 +0100 Subject: [PATCH] Fix for python 12+. --- build_scripts/mono_configure.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build_scripts/mono_configure.py b/build_scripts/mono_configure.py index de29e75..6639274 100644 --- a/build_scripts/mono_configure.py +++ b/build_scripts/mono_configure.py @@ -476,7 +476,7 @@ def copy_mono_root_files(env, mono_root, mono_bcl): def copy_mono_etc_dir(mono_root, target_mono_config_dir, platform): - from distutils.dir_util import copy_tree + from shutil import copytree from glob import glob from shutil import copy @@ -498,11 +498,11 @@ def copy_mono_etc_dir(mono_root, target_mono_config_dir, platform): if not mono_etc_dir: raise RuntimeError("Mono installation etc directory not found") - copy_tree(os.path.join(mono_etc_dir, "2.0"), os.path.join(target_mono_config_dir, "2.0")) - copy_tree(os.path.join(mono_etc_dir, "4.0"), os.path.join(target_mono_config_dir, "4.0")) - copy_tree(os.path.join(mono_etc_dir, "4.5"), os.path.join(target_mono_config_dir, "4.5")) + copytree(os.path.join(mono_etc_dir, "2.0"), os.path.join(target_mono_config_dir, "2.0")) + copytree(os.path.join(mono_etc_dir, "4.0"), os.path.join(target_mono_config_dir, "4.0")) + copytree(os.path.join(mono_etc_dir, "4.5"), os.path.join(target_mono_config_dir, "4.5")) if os.path.isdir(os.path.join(mono_etc_dir, "mconfig")): - copy_tree(os.path.join(mono_etc_dir, "mconfig"), os.path.join(target_mono_config_dir, "mconfig")) + copytree(os.path.join(mono_etc_dir, "mconfig"), os.path.join(target_mono_config_dir, "mconfig")) for file in glob(os.path.join(mono_etc_dir, "*")): if os.path.isfile(file):