post_get hook removes docs for pycharm if it isn't used

This commit is contained in:
Krzysztof Szumny 2016-03-28 01:43:37 +02:00
parent e897d0af52
commit aee5b34f8f

View File

@ -103,10 +103,15 @@ def remove_task_app(project_directory):
def remove_pycharm_dir(project_directory):
"""Removes the .idea directory if PyCharm isn't going to be used"""
"""
Removes directories related to PyCharm
if it isn't going to be used
"""
idea_dir_location = os.path.join(PROJECT_DIRECTORY, '.idea/')
shutil.rmtree(idea_dir_location)
docs_dir_location = os.path.join(PROJECT_DIRECTORY, 'docs/pycharm/')
shutil.rmtree(docs_dir_location)
# IN PROGRESS
# def copy_doc_files(project_directory):