MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / running

Method running

mitmproxy/tools/console/keymap.py:201–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199 raise exceptions.CommandError("Could not load key bindings - %s" % e) from e
200
201 def running(self):
202 p = os.path.join(os.path.expanduser(ctx.options.confdir), self.defaultFile)
203 if os.path.exists(p):
204 try:
205 self.load_path(self.master.keymap, p)
206 except KeyBindingError as e:
207 logging.error(e)
208
209 def load_path(self, km, p):
210 if os.path.exists(p) and os.path.isfile(p):

Callers

nothing calls this directly

Calls 3

load_pathMethod · 0.95
joinMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected