MCPcopy
hub / github.com/scrapy/scrapy / get_config

Function get_config

scrapy/utils/conf.py:104–109  ·  view source on GitHub ↗

Get Scrapy config file as a ConfigParser

(use_closest: bool = True)

Source from the content-addressed store, hash-verified

102
103
104def get_config(use_closest: bool = True) -> ConfigParser:
105 """Get Scrapy config file as a ConfigParser"""
106 sources = get_sources(use_closest)
107 cfg = ConfigParser()
108 cfg.read(sources)
109 return cfg
110
111
112def get_sources(use_closest: bool = True) -> list[str]:

Callers 3

startMethod · 0.90
project_data_dirFunction · 0.90
init_envFunction · 0.85

Calls 2

get_sourcesFunction · 0.85
readMethod · 0.80

Tested by

no test coverage detected