MCPcopy
hub / github.com/benoitc/gunicorn / load_config

Method load_config

gunicorn/app/pasterapp.py:54–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52
53 class PasterServerApplication(WSGIApplication):
54 def load_config(self):
55 self.cfg.set("default_proc_name", config_file)
56
57 if has_logging_config(config_file):
58 self.cfg.set("logconfig", config_file)
59
60 if gunicorn_config_file:
61 self.load_config_from_file(gunicorn_config_file)
62 else:
63 default_gunicorn_config_file = get_default_config_file()
64 if default_gunicorn_config_file is not None:
65 self.load_config_from_file(default_gunicorn_config_file)
66
67 for k, v in local_conf.items():
68 if v is not None:
69 self.cfg.set(k.lower(), v)
70
71 def load(self):
72 return app

Callers

nothing calls this directly

Calls 5

get_default_config_fileFunction · 0.90
has_logging_configFunction · 0.85
load_config_from_fileMethod · 0.80
itemsMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected