mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-23 06:19:55 +03:00
attempt at workaround using temporary placeholder
This commit is contained in:
parent
96e5f8565c
commit
d03cc15f41
|
@ -328,8 +328,8 @@ def handle_licenses():
|
||||||
"GNU Lesser General Public License v3.0": "COPYING.LESSER",
|
"GNU Lesser General Public License v3.0": "COPYING.LESSER",
|
||||||
"The Unlicense": "UNLICENSE",
|
"The Unlicense": "UNLICENSE",
|
||||||
}
|
}
|
||||||
with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
|
|
||||||
selected_title = f.readline().rstrip()
|
selected_title = "{{ cookiecutter.open_source_license }}"
|
||||||
|
|
||||||
if selected_title == "Not open source":
|
if selected_title == "Not open source":
|
||||||
os.remove("CONTRIBUTORS.txt")
|
os.remove("CONTRIBUTORS.txt")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user