Made post_gen_project more robust

This commit is contained in:
Daniel Roy Greenfeld 2016-04-25 15:05:59 -07:00
parent 7a5712c379
commit 7e89db8b3a

View File

@ -98,9 +98,11 @@ def remove_pycharm_dir(project_directory):
if it isn't going to be used
"""
idea_dir_location = os.path.join(PROJECT_DIRECTORY, '.idea/')
if os.path.exists(idea_dir_location):
shutil.rmtree(idea_dir_location)
docs_dir_location = os.path.join(PROJECT_DIRECTORY, 'docs/pycharm/')
if os.path.exists(docs_dir_location):
shutil.rmtree(docs_dir_location)