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 Mar 21, 2023
1 parent aa3c57f commit 3e7aa71
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 @@ -961,8 +961,8 @@ def get_modules(path):
result[os.path.basename(sfm).replace(".py", "").replace(".mpy", "")] = metadata
for package_path in package_dir_mods:
name = os.path.basename(os.path.dirname(package_path))
py_files = glob.glob(os.path.join(package_path, "*.py"))
mpy_files = glob.glob(os.path.join(package_path, "*.mpy"))
py_files = glob.glob(os.path.join(package_path, "**/*.py"), recursive=True)
mpy_files = glob.glob(os.path.join(package_path, "**/*.mpy"), recursive=True)
all_files = py_files + mpy_files
# default value
result[name] = {"path": package_path, "mpy": bool(mpy_files)}
Expand Down

0 comments on commit 3e7aa71

Please sign in to comment.