Skip to content

Commit f3c4a98

Browse files
committed
be explicit about the prefix we expect to remove from frozen_path
1 parent e8307a4 commit f3c4a98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/shared_bindings_matrix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ def frozen_modules_from_dirs(frozen_mpy_dirs, withurl):
251251
"""
252252
frozen_modules = []
253253
for frozen_path in filter(lambda x: x, frozen_mpy_dirs.split(" ")):
254-
source_dir = get_circuitpython_root_dir() / frozen_path[6:]
254+
frozen_path = frozen_path.removeprefix('../../')
255+
source_dir = get_circuitpython_root_dir() / frozen_path
255256
url_repository = get_repository_url(source_dir)
256257
for sub in source_dir.glob("*"):
257258
if sub.name in FROZEN_EXCLUDES:

0 commit comments

Comments
 (0)