mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-24 19:44:33 +00:00
10 lines
282 B
Python
10 lines
282 B
Python
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)
|