mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-26 10:04:16 +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)
|