From 57bc82e202f66df3518a6a71b353c03bed409c7d Mon Sep 17 00:00:00 2001 From: patr0nus Date: Sun, 24 Oct 2021 15:18:47 +0800 Subject: [PATCH] Use shutil.copytree --- scripts/patch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/patch.py b/scripts/patch.py index 9b6e73f..d75c643 100644 --- a/scripts/patch.py +++ b/scripts/patch.py @@ -1,9 +1,9 @@ from . import config import os import subprocess -from distutils.dir_util import copy_tree +import shutil os.chdir('node-{}'.format(config.nodeVersion)) -copy_tree('../patch/node', '.') +shutil.copytree('../patch/node', '.', dirs_exist_ok=True) subprocess.check_call(['patch', '-p1', '-i', '../patch/node.patch'])