allow micropython as top-level dir name in duplicate pid/vid check

This commit is contained in:
Dan Halbert 2021-07-27 08:57:13 -04:00
parent 0eab2eb162
commit a974a2d3c1
1 changed files with 4 additions and 2 deletions

View File

@ -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."
)