From a974a2d3c1b1f8ea2ee848c375c9b8d9a535c8b3 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Tue, 27 Jul 2021 08:57:13 -0400 Subject: [PATCH] allow micropython as top-level dir name in duplicate pid/vid check --- tools/ci_check_duplicate_usb_vid_pid.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/ci_check_duplicate_usb_vid_pid.py b/tools/ci_check_duplicate_usb_vid_pid.py index 72f7858898..3994e9fe36 100644 --- a/tools/ci_check_duplicate_usb_vid_pid.py +++ b/tools/ci_check_duplicate_usb_vid_pid.py @@ -70,10 +70,12 @@ def configboard_files(): """A pathlib glob search for all ports/*/boards/*/mpconfigboard.mk file paths. - :returns: A ``pathlib.Path.glob()`` genarator object + :returns: A ``pathlib.Path.glob()`` generator object """ working_dir = pathlib.Path().resolve() - if not working_dir.name.startswith("circuitpython"): + if not working_dir.name.startswith("circuitpython") and not working_dir.name.startswith( + "micropython" + ): raise RuntimeError( "Please run USB VID/PID duplicate verification at the " "top-level directory." )