From 35c9aeff8b8f02f28b471fd384514e027b2b38d3 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 17 Apr 2021 14:15:55 +0200 Subject: [PATCH] Fix ImportError: cannot import name 'dir_util' from 'distutils' --- resources/lib/path_ops.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/path_ops.py b/resources/lib/path_ops.py index 66367f6b..c7516301 100644 --- a/resources/lib/path_ops.py +++ b/resources/lib/path_ops.py @@ -17,7 +17,6 @@ as well as sources.xml import shutil import os from os import path # allows to use path_ops.path.join, for example -from distutils import dir_util import re import xbmcvfs @@ -187,7 +186,7 @@ def copy_tree(src, dst, *args, **kwargs): (the default), the destination of the symlink will be copied. 'update' and 'verbose' are the same as for 'copy_file'. """ - return dir_util.copy_tree(src, dst, *args, **kwargs) + return shutil.copy_tree(src, dst, *args, **kwargs) def basename(path):