From 7a25dcacffcadf541da5107a35856b66e770bcaf Mon Sep 17 00:00:00 2001 From: Zach White Date: Sat, 8 May 2021 20:56:07 -0700 Subject: New command: qmk console (#12828) * stash poc * stash * tidy up implementation * Tidy up slightly for review * Tidy up slightly for review * Bodge environment to make tests pass * Refactor away from asyncio due to windows issues * Filter devices * align vid/pid printing * Add hidapi to the installers * start preparing for multiple hid_listeners * udev rules for hid_listen * refactor to move closer to end state * very basic implementation of the threaded model * refactor how vid/pid/index are supplied and parsed * windows improvements * read the report directly when usage page isn't available * add per-device colors, the choice to show names or numbers, and refactor * add timestamps * Add support for showing bootloaders * tweak the color for bootloaders * Align bootloader disconnect with connect color * add support for showing all bootloaders * fix the pyusb check * tweaks * fix exception * hide a stack trace behind -v * add --no-bootloaders option * add documentation for qmk console * Apply suggestions from code review Co-authored-by: Ryan * pyformat * clean up and flesh out KNOWN_BOOTLOADERS Co-authored-by: zvecr Co-authored-by: Ryan --- bin/qmk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/qmk b/bin/qmk index a2af2951c9..4b5fd5bbce 100755 --- a/bin/qmk +++ b/bin/qmk @@ -33,6 +33,8 @@ def _check_modules(requirements): # Not every module is importable by its own name. if module['name'] == "pep8-naming": module['import'] = "pep8ext_naming" + elif module['name'] == 'pyusb': + module['import'] = 'usb.core' if not find_spec(module['import']): print('Could not find module %s!' % module['name']) -- cgit v1.2.3