scrapy/scrapyd/eggrunner.py

10 lines
185 B
Python

import sys, os
from scrapyd.eggutils import activate_egg
eggpath = os.environ.get('SCRAPY_EGGFILE')
if eggpath:
activate_egg(eggpath)
from scrapy.cmdline import execute
execute()