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
Have a cookicutter template with required jason file and a directory {{ cookiecutter.project_name }}.
Also have created couple of directories say, dir1 and dir2 in same location.
Question is how do I reference to dir1 and dir2 within 'pre_gen_project.py' hook file?
What I am looking to achieve is, based on input (one of the fields defined in jason file) provided during project creation, want to copy content of either dir1 or dir2 to {{ cookiecutter.project_name }} (before generation kicks in).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Have a cookicutter template with required jason file and a directory {{ cookiecutter.project_name }}.
Also have created couple of directories say, dir1 and dir2 in same location.
Question is how do I reference to dir1 and dir2 within 'pre_gen_project.py' hook file?
What I am looking to achieve is, based on input (one of the fields defined in jason file) provided during project creation, want to copy content of either dir1 or dir2 to {{ cookiecutter.project_name }} (before generation kicks in).
Beta Was this translation helpful? Give feedback.
All reactions