mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-27 15:24:12 +00:00
--HG-- rename : debian/scrapyd.cfg => debian/000-default rename : scrapyd/default_scrapyd.cfg => scrapyd/default_scrapyd.conf
9 lines
238 B
Python
9 lines
238 B
Python
from scrapy.utils.misc import load_object
|
|
from .config import Config
|
|
|
|
def get_application():
|
|
config = Config()
|
|
apppath = config.get('application', 'scrapyd.app.application')
|
|
appfunc = load_object(apppath)
|
|
return appfunc()
|