Skip to content

Commit 91a6313

Browse files
authored
Merge pull request #62 from Neradoc/fix-missing-requirements
Fix requirements missing for single file modules
2 parents 00468b1 + ddbd38f commit 91a6313

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

circuitpython_build_tools/build.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ def library(library_path, output_directory, package_folder_prefix,
122122
else:
123123
if not example_bundle:
124124
is_package = False
125-
for prefix in package_folder_prefix:
126-
if file.parts[parent_idx].startswith(prefix):
127-
is_package = True
125+
if len(file.parts) > parent_idx + 1:
126+
for prefix in package_folder_prefix:
127+
if file.parts[parent_idx].startswith(prefix):
128+
is_package = True
128129

129130
if is_package:
130131
package_files.append(file)

0 commit comments

Comments
 (0)