get_spider_list_from_eggfile(): fixed bug when SCRAPY_SETTINGS_DISABLED is set

This commit is contained in:
Pablo Hoffman 2010-09-20 08:47:55 -03:00
parent 8329491296
commit 4c61df7abb
1 changed files with 1 additions and 0 deletions

View File

@ -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()