Skip to content

Commit

Permalink
Update cookiecutter/target-template/hooks/post_gen_project.py
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Nov 21, 2023
1 parent ceba9fb commit 243b399
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions cookiecutter/target-template/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
import shutil


BASE_PATH = Path('{{cookiecutter.library_name}}')
BASE_PATH = Path("{{cookiecutter.library_name}}")


if __name__ == '__main__':

if '{{ cookiecutter.license }}' != 'Apache-2.0':
Path('LICENSE').unlink()

if '{{ cookiecutter.include_ci_files }}' != 'GitHub':
shutil.rmtree(Path('.github'))
if __name__ == "__main__":
if "{{ cookiecutter.license }}" != "Apache-2.0":
Path("LICENSE").unlink()

if "{{ cookiecutter.include_ci_files }}" != "GitHub":
shutil.rmtree(Path(".github"))

0 comments on commit 243b399

Please sign in to comment.