Skip to content

Commit ac98a95

Browse files
committed
fix copytree in post_gen hook
1 parent b26097e commit ac98a95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/post_gen_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def copy_choosen_template_to_main_dir(used_template: str):
1616
if used_template not in TEMPLATES:
1717
raise ValueError(f"{used_template} not in {TEMPLATES}")
1818

19-
copytree(used_template, "./")
19+
copytree(used_template, "./", dirs_exist_ok=True)
2020

2121
for template in TEMPLATES:
2222
rmtree(Path(template))

0 commit comments

Comments
 (0)