(self)
| 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): |