From 0fbcc877ef12fe95b6b94943a9bf2ad81151dc3e Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Wed, 30 Oct 2024 17:17:40 +0100 Subject: [PATCH] Use shutil instead of distutils.dir_util to copy file tree (fix #56) --- {{cookiecutter.slug}}/bootstrap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/{{cookiecutter.slug}}/bootstrap.py b/{{cookiecutter.slug}}/bootstrap.py index 936f949..443cd5a 100644 --- a/{{cookiecutter.slug}}/bootstrap.py +++ b/{{cookiecutter.slug}}/bootstrap.py @@ -2,7 +2,6 @@ import os import os.path as op -from distutils import dir_util import glob import json import platform @@ -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')