Merge pull request #5070 from jepler/check-duplicate-topdir
check vid/pid: find topdir relative to this script
This commit is contained in:
commit
7641bf15c0
@ -72,13 +72,7 @@ def configboard_files():
|
||||
|
||||
:returns: A ``pathlib.Path.glob()`` generator object
|
||||
"""
|
||||
working_dir = pathlib.Path().resolve()
|
||||
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."
|
||||
)
|
||||
working_dir = pathlib.Path(__file__).resolve().parent.parent
|
||||
return working_dir.glob("ports/**/boards/**/mpconfigboard.mk")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user