Skip to content

Commit b83e098

Browse files
authored
Merge pull request #5636 from dhalbert/fix-circuitpython-org-pr
Fix ci_fetch_deps.py for website PR generation
2 parents 8cf269d + 26f23e4 commit b83e098

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/ci_fetch_deps.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,15 @@ def run(title, command):
7272
elif target == "windows":
7373
# This builds one board from a number of ports so fill out a bunch of submodules
7474
submodules = ["extmod/", "lib/", "tools/", "ports/", "data/nvm.toml/"]
75+
elif target == "website":
76+
# No submodules needed.
77+
pass
7578
else:
76-
p = pathlib.Path(".").glob(f"ports/*/boards/{target}/mpconfigboard.mk")
79+
p = list(pathlib.Path(".").glob(f"ports/*/boards/{target}/mpconfigboard.mk"))
7780
if not p:
7881
raise RuntimeError(f"Unsupported target: {target}")
7982

80-
config = list(p)[0]
83+
config = p[0]
8184
# Add the ports folder to init submodules
8285
port_folder = config.parents[2]
8386
port = port_folder.name

0 commit comments

Comments
 (0)