mirror of https://github.com/scrapy/scrapy.git
refactor
This commit is contained in:
parent
0cabf406d5
commit
2df3b54c7d
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue