Fix running qmk info without any arguments (#9218)

This commit is contained in:
Zach White
2020-05-27 00:43:22 -07:00
committed by GitHub
parent 10c1e1b3ab
commit 1a5dc278bc
2 changed files with 59 additions and 41 deletions

View File

@ -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():