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'])