Skip to content

Commit

Permalink
Use shutil.copytree
Browse files Browse the repository at this point in the history
  • Loading branch information
patr0nus committed Oct 24, 2021
1 parent 2a01375 commit 57bc82e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/patch.py
Original file line number Diff line number Diff line change
@@ -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'])

0 comments on commit 57bc82e

Please sign in to comment.