Skip to content

Commit a974a2d

Browse files
committed
allow micropython as top-level dir name in duplicate pid/vid check
1 parent 0eab2eb commit a974a2d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/ci_check_duplicate_usb_vid_pid.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,12 @@ def configboard_files():
7070
"""A pathlib glob search for all ports/*/boards/*/mpconfigboard.mk file
7171
paths.
7272
73-
:returns: A ``pathlib.Path.glob()`` genarator object
73+
:returns: A ``pathlib.Path.glob()`` generator object
7474
"""
7575
working_dir = pathlib.Path().resolve()
76-
if not working_dir.name.startswith("circuitpython"):
76+
if not working_dir.name.startswith("circuitpython") and not working_dir.name.startswith(
77+
"micropython"
78+
):
7779
raise RuntimeError(
7880
"Please run USB VID/PID duplicate verification at the " "top-level directory."
7981
)

0 commit comments

Comments
 (0)