Fix FileNotFoundError

This commit is contained in:
Nikita P. Shupeyko 2018-03-06 16:31:00 +03:00
parent 7cedff22d5
commit 24407e9761

View File

@ -73,10 +73,6 @@ def remove_heroku_files():
os.remove(os.path.join(PROJECT_DIR_PATH, file_name))
def remove_dotenv_file():
os.remove(os.path.join(PROJECT_DIR_PATH, '.env'))
def remove_grunt_files():
file_names = [
'Gruntfile.js',
@ -268,9 +264,6 @@ def main():
if '{{ cookiecutter.use_heroku }}'.lower() == 'n':
remove_heroku_files()
if '{{ cookiecutter.use_docker }}'.lower() == 'n' and '{{ cookiecutter.use_heroku }}'.lower() == 'n':
remove_dotenv_file()
if '{{ cookiecutter.js_task_runner}}'.lower() == 'gulp':
remove_grunt_files()
elif '{{ cookiecutter.js_task_runner}}'.lower() == 'grunt':