mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 11:04:04 +03:00
Made post_gen_project more robust
This commit is contained in:
parent
7a5712c379
commit
7e89db8b3a
|
@ -98,10 +98,12 @@ def remove_pycharm_dir(project_directory):
|
|||
if it isn't going to be used
|
||||
"""
|
||||
idea_dir_location = os.path.join(PROJECT_DIRECTORY, '.idea/')
|
||||
shutil.rmtree(idea_dir_location)
|
||||
if os.path.exists(idea_dir_location):
|
||||
shutil.rmtree(idea_dir_location)
|
||||
|
||||
docs_dir_location = os.path.join(PROJECT_DIRECTORY, 'docs/pycharm/')
|
||||
shutil.rmtree(docs_dir_location)
|
||||
if os.path.exists(docs_dir_location):
|
||||
shutil.rmtree(docs_dir_location)
|
||||
|
||||
|
||||
def remove_heroku_files():
|
||||
|
|
Loading…
Reference in New Issue
Block a user