Permalink
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 282 Bytes
from scrapy.utils.misc import load_object
from .config import Config
def get_application(config=None):
if config is None:
config = Config()
apppath = config.get('application', 'scrapyd.app.application')
appfunc = load_object(apppath)
return appfunc(config)