Skip to content

Commit

Permalink
Move it even further up so that keyboard_folder is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Oct 4, 2020
1 parent dffa6dc commit f62494c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@
def info_json(keyboard):
"""Generate the info.json data for a specific keyboard.
"""
info_data = {
'keyboard_name': str(keyboard),
'keyboard_folder': str(keyboard),
'layouts': {},
'maintainer': 'qmk',
}

cur_dir = Path('keyboards')
rules = parse_rules_mk_file(cur_dir / Path(keyboard) / 'rules.mk')
default_folder = rules.get('DEFAULT_FOLDER', '')
Expand All @@ -33,6 +26,13 @@ def info_json(keyboard):

keyboard = default_folder

info_data = {
'keyboard_name': str(keyboard),
'keyboard_folder': str(keyboard),
'layouts': {},
'maintainer': 'qmk',
}

for layout_name, layout_json in _find_all_layouts(keyboard, rules).items():
if not layout_name.startswith('LAYOUT_kc'):
info_data['layouts'][layout_name] = layout_json
Expand Down

0 comments on commit f62494c

Please sign in to comment.