Skip to content

Commit

Permalink
find all files in packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Jan 31, 2023
1 parent 55b0139 commit d60c5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions circup/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,8 @@ def get_modules(path):
result[os.path.basename(sfm).replace(".py", "").replace(".mpy", "")] = metadata
for dm in directory_mods:
name = os.path.basename(os.path.dirname(dm))
py_files = glob.glob(os.path.join(dm, "*.py"))
mpy_files = glob.glob(os.path.join(dm, "*.mpy"))
py_files = glob.glob(os.path.join(dm, "**/*.py"), recursive=True)
mpy_files = glob.glob(os.path.join(dm, "**/*.mpy"), recursive=True)
all_files = py_files + mpy_files
# default value
result[name] = {"path": dm, "mpy": bool(mpy_files)}
Expand Down

0 comments on commit d60c5cb

Please sign in to comment.