mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-23 22:39:45 +03:00
shutil can't remove files
This commit is contained in:
parent
9cd448012a
commit
93eeee1330
|
@ -103,8 +103,16 @@ def remove_task_app(project_directory):
|
|||
|
||||
def remove_channels_files(project_directory):
|
||||
"""Removes channels files if it isn't going to be used"""
|
||||
for path in ["config/routing.py", '{{ cookiecutter.repo_name }}/channelsapp']:
|
||||
shutil.rmtree(path)
|
||||
routing_file = os.path.join(
|
||||
PROJECT_DIRECTORY,
|
||||
"config/routing.py"
|
||||
)
|
||||
os.remove(routing_file)
|
||||
channels_app_location = os.path.join(
|
||||
PROJECT_DIRECTORY,
|
||||
'{{ cookiecutter.repo_name }}/channelsapp'
|
||||
)
|
||||
shutil.rmtree(channels_app_location)
|
||||
|
||||
# IN PROGRESS
|
||||
# def copy_doc_files(project_directory):
|
||||
|
|
Loading…
Reference in New Issue
Block a user