Remove DEFAULT_FOLDER handling (#23281)

This commit is contained in:
Joel Challis
2025-06-09 05:08:56 +01:00
committed by GitHub
parent 94f1aade5c
commit 0326355edc
10 changed files with 20 additions and 58 deletions

View File

@@ -21,11 +21,9 @@ def is_keyboard(keyboard_name):
if Path(keyboard_name).is_absolute():
return False
keyboard_path = QMK_FIRMWARE / 'keyboards' / keyboard_name
rules_mk = keyboard_path / 'rules.mk'
keyboard_json = keyboard_path / 'keyboard.json'
keyboard_json = QMK_FIRMWARE / 'keyboards' / keyboard_name / 'keyboard.json'
return rules_mk.exists() or keyboard_json.exists()
return keyboard_json.exists()
def under_qmk_firmware(path=Path(os.environ['ORIG_CWD'])):