1
0
mirror of https://github.com/ycd/manage-fastapi.git synced 2021-11-08 01:34:39 +03:00

small fix on unlink

This commit is contained in:
yagiz
2020-11-06 00:57:15 +03:00
parent 65123b8f1b
commit 7579e3ac2f

View File

@@ -117,7 +117,10 @@ def start_project(
with open(f"{current_path}/{project_name}/main.py", "a+") as main:
main.write(empty_main_template.replace("{project_name}", project_name))
Path.unlink(f"{current_path}/{project_name}/core/settings.py")
# Delete settings
settings = Path(f"{current_path}/{project_name}/core/settings.py")
settings.unlink()
with open(
f"{current_path}/{project_name}/core/settings.py", "a+"
) as settings: