I would like to have a file that is optionally added in my python cookiecutter project.
An example would be in cookiecutter.json have the variable
{"settings_file": true}
which would create a file settings.py
at the root of my directory (with maybe some contents).
Does cookiecutter offer an option to do this? Or should I be using the post processing hook to write a script which creates the files (which I feel like is not the most elegant solution).
sys
is not used – Quintuplicate