mirror of https://github.com/scrapy/scrapy.git
get_spider_list_from_eggfile(): fixed bug when SCRAPY_SETTINGS_DISABLED is set
This commit is contained in:
parent
8329491296
commit
4c61df7abb
|
|
@ -18,6 +18,7 @@ def get_spider_list_from_eggfile(eggfile, project):
|
|||
env = os.environ.copy()
|
||||
env['SCRAPY_PROJECT'] = project
|
||||
env['SCRAPY_EGGFILE'] = f.name
|
||||
env.pop('SCRAPY_SETTINGS_DISABLED', None)
|
||||
proc = Popen(pargs, stdout=PIPE, cwd=tmpdir, env=env)
|
||||
out = proc.communicate()[0]
|
||||
return out.splitlines()
|
||||
|
|
|
|||
Loading…
Reference in New Issue