diff options
author | Drashna Jael're <drashna@live.com> | 2020-11-24 09:38:19 -0800 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2021-01-12 22:43:35 -0800 |
commit | 2dbe99b04f188efc6582e9be055714a7db6b3a78 (patch) | |
tree | 708daa73fcc4af3a8cbb710bb3e741f04107009d /lib/python/qmk/info.py | |
parent | 2077e6561ccf17f1b87bf42d3de8f066c2bc91a5 (diff) |
Brute force update CLI tools
Diffstat (limited to 'lib/python/qmk/info.py')
-rw-r--r-- | lib/python/qmk/info.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index e8a44a33f9..d73ba8cfb6 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py @@ -9,6 +9,7 @@ from milc import cli from qmk.constants import CHIBIOS_PROCESSORS, LUFA_PROCESSORS, VUSB_PROCESSORS from qmk.c_parse import find_layouts from qmk.keyboard import config_h, rules_mk +from qmk.keymap import list_keymaps from qmk.makefile import parse_rules_mk_file from qmk.math import compute @@ -25,6 +26,7 @@ def info_json(keyboard): info_data = { 'keyboard_name': str(keyboard), 'keyboard_folder': str(keyboard), + 'keymaps': {}, 'layouts': {}, 'parse_errors': [], 'parse_warnings': [], @@ -40,6 +42,7 @@ def info_json(keyboard): if not layout_name.startswith('LAYOUT_kc'): info_data['layouts'][layout_name] = layout_json + # Merge in the data from info.json, config.h, and rules.mk info_data = merge_info_jsons(keyboard, info_data) info_data = _extract_config_h(info_data) info_data = _extract_rules_mk(info_data) |