Skip to content

Commit

Permalink
Only omit paths containing "/keymaps/" (qmk#17468)
Browse files Browse the repository at this point in the history
This allows keyboard names to contain the word "keymaps"
  • Loading branch information
precondition authored and schattenbrot committed Aug 2, 2022
1 parent d33b470 commit 35dd326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/python/qmk/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def list_keyboards():
"""
# We avoid pathlib here because this is performance critical code.
kb_wildcard = os.path.join(base_path, "**", "rules.mk")
paths = [path for path in glob(kb_wildcard, recursive=True) if 'keymaps' not in path]
paths = [path for path in glob(kb_wildcard, recursive=True) if os.path.sep + 'keymaps' + os.path.sep not in path]

return sorted(set(map(resolve_keyboard, map(_find_name, paths))))

Expand Down

0 comments on commit 35dd326

Please sign in to comment.