Skip to content

Commit

Permalink
Allow locate_keymap to handle DEFAULT_FOLDER (qmk#17529)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and zykrah committed Jul 2, 2022
1 parent 84cc5bb commit aaf1b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qmk/keymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from pygments import lex

import qmk.path
from qmk.keyboard import find_keyboard_from_dir, rules_mk
from qmk.keyboard import find_keyboard_from_dir, rules_mk, keyboard_folder
from qmk.errors import CppError

# The `keymap.c` template to use when a keyboard doesn't have its own
Expand Down Expand Up @@ -357,7 +357,7 @@ def locate_keymap(keyboard, keymap):
checked_dirs = ''
keymap_path = ''

for dir in keyboard.split('/'):
for dir in keyboard_folder(keyboard).split('/'):
if checked_dirs:
checked_dirs = '/'.join((checked_dirs, dir))
else:
Expand Down

0 comments on commit aaf1b67

Please sign in to comment.