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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user