Skip to content

Commit 269ceae

Browse files
authored
Merge pull request #11 from tannewt/ignore_docs_dir
Ignore docs directory and allow packages to drop __init__.py
2 parents 2e33769 + fe27c65 commit 269ceae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

circuitpython_build_tools/build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ def library(library_path, output_directory, mpy_cross=None):
9898
total_size = 512
9999
for filename in os.listdir(library_path):
100100
full_path = os.path.join(library_path, filename)
101-
init_file = os.path.join(full_path, "__init__.py")
102-
if os.path.isdir(full_path) and os.path.isfile(init_file):
101+
if os.path.isdir(full_path) and filename not in ["examples", "docs"]:
103102
files = os.listdir(full_path)
104103
files = filter(lambda x: x.endswith(".py"), files)
105104
files = map(lambda x: os.path.join(filename, x), files)

0 commit comments

Comments
 (0)