in hooks/post_gen_project.py [0:0]
def main():
project_name = "{{ cookiecutter.project_name }}"
project_slug = "{{ cookiecutter.project_slug }}"
architecture = "{{ cookiecutter.architecture }}"
templates_repo = "{{ cookiecutter._templates_repo }}"
template_dir = os.path.join("templates", "{{ cookiecutter.template }}")
cookiecutter( templates_repo,
directory=template_dir,
no_input=True,
output_dir="..",
overwrite_if_exists=True,
extra_context={
"project_name": project_name,
"project_slug": project_slug,
"architecture": architecture
}
)
print(SUCCESS +
"Project initialized successfully! You can now jump to {} folder".
format(project_slug) + TERMINATOR)
print(INFO +
"{}/README.md contains instructions on how to proceed.".
format(project_slug) + TERMINATOR)