mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-12 00:52:29 +03:00
fixed bug with not open source option
This commit is contained in:
parent
a05722fc92
commit
96e5f8565c
|
@ -331,7 +331,7 @@ def handle_licenses():
|
||||||
with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
|
with open(os.path.join("licenses", "-temporary-placeholder.txt")) as f:
|
||||||
selected_title = f.readline().rstrip()
|
selected_title = f.readline().rstrip()
|
||||||
|
|
||||||
if selected_title == "Not open source\n":
|
if selected_title == "Not open source":
|
||||||
os.remove("CONTRIBUTORS.txt")
|
os.remove("CONTRIBUTORS.txt")
|
||||||
shutil.rmtree("licenses")
|
shutil.rmtree("licenses")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user