allow micropython as top-level dir name in duplicate pid/vid check
This commit is contained in:
parent
0eab2eb162
commit
a974a2d3c1
|
@ -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."
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue