Skip to content

Commit

Permalink
Use shutil instead of distutils.dir_util to copy file tree (fix #56)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Oct 30, 2024
1 parent 8de2764 commit 0fbcc87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions {{cookiecutter.slug}}/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
import os.path as op
from distutils import dir_util
import glob
import json
import platform
Expand Down Expand Up @@ -228,7 +227,7 @@ def activate_frontend():
'--style=scss',
'--routing=true']
)()
dir_util.copy_tree('frontend.angular', project_name)
shutil.copytree('frontend.angular', project_name, dirs_exist_ok=True)
os.rename(project_name, 'frontend')
shutil.move(op.join('frontend', 'proxy.conf.json'), 'proxy.conf.json')
override_json('package')
Expand Down

0 comments on commit 0fbcc87

Please sign in to comment.