Skip to content

Commit

Permalink
Fix bug when 'info.json' lookup escapes keyboard dir (qmk#16734)
Browse files Browse the repository at this point in the history
  • Loading branch information
Erovia authored Mar 26, 2022
1 parent 084df6a commit 55e5daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,9 +753,9 @@ def find_info_json(keyboard):

# Add in parent folders for least specific
for _ in range(5):
info_jsons.append(keyboard_parent / 'info.json')
if keyboard_parent.parent == base_path:
if keyboard_parent == base_path:
break
info_jsons.append(keyboard_parent / 'info.json')
keyboard_parent = keyboard_parent.parent

# Return a list of the info.json files that actually exist
Expand Down

0 comments on commit 55e5daa

Please sign in to comment.