MCPcopy
hub / github.com/mitmproxy/mitmproxy / keymap_load_path

Method keymap_load_path

mitmproxy/tools/console/keymap.py:195–199  ·  view source on GitHub ↗
(self, path: mitmproxy.types.Path)

Source from the content-addressed store, hash-verified

193
194 @command.command("console.keymap.load")
195 def keymap_load_path(self, path: mitmproxy.types.Path) -> None:
196 try:
197 self.load_path(self.master.keymap, path) # type: ignore
198 except (OSError, KeyBindingError) as e:
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)

Callers

nothing calls this directly

Calls 1

load_pathMethod · 0.95

Tested by

no test coverage detected