From 85c4ecb92856f7d50f8dbf7c92d629bd5db83f02 Mon Sep 17 00:00:00 2001 From: Felipe Ruhland Date: Tue, 24 May 2016 13:00:41 -0300 Subject: [PATCH] Removed validation of project_name dir exists --- scrapy/commands/startproject.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scrapy/commands/startproject.py b/scrapy/commands/startproject.py index c0e7af88a..a51a586ab 100644 --- a/scrapy/commands/startproject.py +++ b/scrapy/commands/startproject.py @@ -44,8 +44,6 @@ class Command(ScrapyCommand): if not re.search(r'^[_a-zA-Z]\w*$', project_name): print('Error: Project names must begin with a letter and contain'\ ' only\nletters, numbers and underscores') - elif exists(project_name): - print('Error: Directory %r already exists' % project_name) elif _module_exists(project_name): print('Error: Module %r already exists' % project_name) else: