Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

refactor

Matthias Meschede2df3b54c7d26
diff --git a/scrapy/commands/startproject.py b/scrapy/commands/startproject.py
index cfaa25154..3d1f5914f 100644
--- a/scrapy/commands/startproject.py
+++ b/scrapy/commands/startproject.py
@@ -79,6 +79,7 @@ class Command(ScrapyCommand):
else:
copy2(srcname, dstname)
copystat(src, dst)
+ self._set_rw_permissions(dst)
def _set_rw_permissions(self, path):
"""
@@ -123,8 +124,6 @@ class Command(ScrapyCommand):
self._copytree(self.templates_dir, abspath(project_dir))
- self._set_rw_permissions(abspath(project_dir))
-
move(join(project_dir, 'module'), join(project_dir, project_name))
for paths in TEMPLATES_TO_RENDER:
path = join(*paths)