You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cookiecutter by default puts all the contents in a site project folder. This is great for things like documentation but doesn't make sense when the webiste is the main focus of the project.
Suggestion
Set the project_path to be "__home". If the variable is not changed, then copytree the folder into the project root.
We have output_dir from cookiecutter but it always defaults to creating a folder inside the current folder I think we need to work on changing how cookiecutter works as we already have the flag that people can set to specify a folder.
Cookiecutter (used by render-engine init) will create a new sub-directory in the directory where it's called. We should add logic to allow the user to specify a different path if so desired. The simplest way to implement this is probably to change the working directory to be the parent directory of the desired location. If the desired location is a directory that already exists, then moving it after creation in a temp directory would probably be the solution.
Activity
john0isaac commentedon Feb 29, 2024
We have output_dir from cookiecutter but it always defaults to creating a folder inside the current folder I think we need to work on changing how cookiecutter works as we already have the flag that people can set to specify a folder.

kjaymiller commentedon Feb 29, 2024
I think doing a copytree, rmtree would be easier than overriding how cookiecutter works no?
john0isaac commentedon Feb 29, 2024
Yes, it would let's see who takes this on and if they can figure out something better
brass75 commentedon Sep 10, 2026
Cookiecutter (used by
render-engine init) will create a new sub-directory in the directory where it's called. We should add logic to allow the user to specify a different path if so desired. The simplest way to implement this is probably to change the working directory to be the parent directory of the desired location. If the desired location is a directory that already exists, then moving it after creation in a temp directory would probably be the solution.