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

Method chdir

gunicorn/app/base.py:83–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 # pylint: disable=abstract-method
82
83 def chdir(self):
84 # chdir to the configured path before loading,
85 # default is the current dir
86 os.chdir(self.cfg.chdir)
87
88 # add the path to sys.path
89 if self.cfg.chdir not in sys.path:
90 sys.path.insert(0, self.cfg.chdir)
91
92 def get_config_from_filename(self, filename):
93

Callers 3

load_configMethod · 0.95
reexecMethod · 0.80
test_import_app_py_extFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_import_app_py_extFunction · 0.64