Skip to content

Commit

Permalink
fix: inc local mods
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Apr 15, 2024
1 parent 76154ce commit 36acdd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ape/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def registered_plugins(self) -> Set[str]:

@functools.cached_property
def _plugin_modules(self) -> Tuple[str, ...]:
return tuple(
[x.name.replace("-", "_") for x in distributions() if x.name.startswith("ape-")]
)
plugins = [x.name.replace("-", "_") for x in distributions() if x.name.startswith("ape-")]
locals = [p for p in __modules__ if p != "ape"]
return tuple([*plugins, *locals])

def _register_plugins(self):
if self.__registered:
Expand Down

0 comments on commit 36acdd5

Please sign in to comment.