Fix running qmk info without any arguments (#9218)
This commit is contained in:
parent
10c1e1b3ab
commit
1a5dc278bc
2 changed files with 59 additions and 41 deletions
|
@ -11,9 +11,10 @@ from qmk.errors import NoSuchKeyboardError
|
|||
def is_keyboard(keyboard_name):
|
||||
"""Returns True if `keyboard_name` is a keyboard we can compile.
|
||||
"""
|
||||
keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
|
||||
rules_mk = keyboard_path / 'rules.mk'
|
||||
return rules_mk.exists()
|
||||
if keyboard_name:
|
||||
keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
|
||||
rules_mk = keyboard_path / 'rules.mk'
|
||||
return rules_mk.exists()
|
||||
|
||||
|
||||
def under_qmk_firmware():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue