diff --git a/robyn/__main__.py b/robyn/__main__.py index 59a3a831d..0313233c6 100644 --- a/robyn/__main__.py +++ b/robyn/__main__.py @@ -4,8 +4,8 @@ from InquirerPy.base.control import Choice from .argument_parser import Config from robyn.robyn import get_version -from distutils.dir_util import copy_tree from pathlib import Path +import shutil SCAFFOLD_DIR = Path(__file__).parent / "scaffold" @@ -57,7 +57,11 @@ def create_robyn_app(): os.makedirs(final_project_dir_path, exist_ok=True) selected_project_template = (SCAFFOLD_DIR / Path(project_type)).resolve() +<<<<<<< HEAD copy_tree(str(selected_project_template), str(final_project_dir_path)) +======= + shutil.copytree(str(selected_project_template), str(final_project_dir_path), dirs_exist_ok=True) +>>>>>>> 840b699 (update) # If docker is not needed, delete the docker file if docker == "N":