From 01399d4be6f3dacb7c0bed2b84edbbc63331b83e Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 18 Jan 2019 17:59:45 +0100 Subject: config templates are now actually used --- asciifarm/client/loaders.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asciifarm/client/loaders.py') diff --git a/asciifarm/client/loaders.py b/asciifarm/client/loaders.py index 0b4c5b7..8330e0e 100644 --- a/asciifarm/client/loaders.py +++ b/asciifarm/client/loaders.py @@ -23,7 +23,7 @@ def loadKeybindings(name): for ftemplate in data.get("templates", []): if ftemplate.partition(os.sep)[0] in {".", ".."}: ftemplate = os.path.relpath(ftemplate, fname) - template = loadKeyBindings(ftemplate) + template = loadKeybindings(ftemplate) bindings.update(template.get("actions", {})) help = template.get("help", help) bindings.update(data.get("actions", {})) @@ -31,7 +31,7 @@ def loadKeybindings(name): return {"actions": bindings, "help": help} -standardCharFiles = {name, os.path.join(charmapPath, file) for name, file in { +standardCharFiles = {name: os.path.join(charmapPath, file) for name, file in { "default": "default.json", "fullwith": "fullwidth.json", "fw": "fullwidth.json", -- cgit