From 74be06a26e23af77e0dbf61bd6ca9d7718c34937 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Fri, 24 Jul 2020 09:10:02 +0200 Subject: [PATCH] use distutils.dir_util instead of shutil for recursive copy Signed-off-by: Francois Andrieu --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 1857d52..3bd14c2 100755 --- a/build.py +++ b/build.py @@ -8,6 +8,7 @@ import shutil import subprocess import time +from distutils.dir_util import copy_tree from urllib.parse import urlparse import yaml @@ -189,7 +190,7 @@ def commit_l10n(repo_name): try: # add hooks dir_path = os.path.dirname(os.path.abspath(__file__)) - shutil.copytree(os.path.join(dir_path, '.githooks'), os.path.join(repo_dir, '.githooks')) + copy_tree(os.path.join(dir_path, '.githooks'), os.path.join(repo_dir, '.githooks')) shutil.copy(os.path.join(dir_path, 'check.sh'), os.path.join(repo_dir, 'check.sh')) subprocess.run(['./check.sh'], check=True, cwd=repo_dir) -- 2.26.2