Fix ImportError: cannot import name 'dir_util' from 'distutils'

This commit is contained in:
croneter 2021-04-17 14:15:55 +02:00
parent 18599e2e81
commit 35c9aeff8b

View file

@ -17,7 +17,6 @@ as well as sources.xml
import shutil import shutil
import os import os
from os import path # allows to use path_ops.path.join, for example from os import path # allows to use path_ops.path.join, for example
from distutils import dir_util
import re import re
import xbmcvfs import xbmcvfs
@ -187,7 +186,7 @@ def copy_tree(src, dst, *args, **kwargs):
(the default), the destination of the symlink will be copied. (the default), the destination of the symlink will be copied.
'update' and 'verbose' are the same as for 'copy_file'. '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): def basename(path):