Skip to content

Commit d7a540f

Browse files
committed
cookiecutter: attempt to edit context by jinja templates
1 parent ba09a18 commit d7a540f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hooks/pre_gen_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
'Unlicense': 'Unlicense',
2020
}
2121

22-
license = cookiecutter.license
23-
cookiecutter.license_classifier = LICENSE_CLASSIFIERS.get(license, license)
24-
cookiecutter.license_spdx = LICENSE_SPDX.get(license, license)
22+
license = '{{ cookiecutter.license }}'
23+
_ = '{{ cookiecutter.license_classifier = LICENSE_CLASSIFIERS.get(license, license) }}'
24+
_ = '{{ cookiecutter.license_spdx = LICENSE_SPDX.get(license, license) }}'

0 commit comments

Comments
 (0)