mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-23 04:44:04 +00:00
scrapyd: fixed bug discovering the current project scrapy.cfg file
This commit is contained in:
parent
7b84591ea9
commit
823fd9822c
@ -30,7 +30,9 @@ class Config(object):
|
||||
sources = ['/etc/scrapyd/scrapyd.conf', r'c:\scrapyd\scrapyd.conf']
|
||||
sources += sorted(glob.glob('/etc/scrapyd/conf.d/*'))
|
||||
sources += ['scrapyd.conf']
|
||||
sources += closest_scrapy_cfg()
|
||||
scrapy_cfg = closest_scrapy_cfg()
|
||||
if scrapy_cfg:
|
||||
sources.append(scrapy_cfg)
|
||||
return sources
|
||||
|
||||
def _getany(self, method, option, default):
|
||||
|
Loading…
x
Reference in New Issue
Block a user