Skip to content

Commit dec5e79

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hooks/pre_gen_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
}
2121

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

0 commit comments

Comments
 (0)