Skip to content

Commit

Permalink
Add code to collector init #512 #515
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Aug 13, 2024
1 parent 59e9e0e commit 606fefc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions minecode/collectors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
# See https://github.com/aboutcode-org/purldb for support or download.
# See https://aboutcode.org for more information about nexB OSS projects.
#

import pkgutil

"""
Minimal way to recursively import all submodules dynamically. If this module is
imported, all submodules will be imported: this triggers the actual registration
of miners. This should stay as the last import in this init module.
"""
for _, name, _ in pkgutil.walk_packages(__path__, prefix=__name__ + "."):
__import__(name)

0 comments on commit 606fefc

Please sign in to comment.