summaryrefslogtreecommitdiff
path: root/lib/python/qmk
diff options
context:
space:
mode:
authorErovia <Erovia@users.noreply.github.com>2022-03-26 19:15:25 +0000
committerGitHub <noreply@github.com>2022-03-26 19:15:25 +0000
commit55e5daa868c692e686a96997a4a12cb65c348382 (patch)
tree88fecd89c5992e94db07c576e52be6322ddbbc83 /lib/python/qmk
parent084df6a288503709ddde2bfa0d64e1677fe32b29 (diff)
Fix bug when 'info.json' lookup escapes keyboard dir (#16734)
Diffstat (limited to 'lib/python/qmk')
-rw-r--r--lib/python/qmk/info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py
index b86eaa059f..fd8a3062b7 100644
--- a/lib/python/qmk/info.py
+++ b/lib/python/qmk/info.py
@@ -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