Skip to content

Commit

Permalink
Correct usage to load all entry points into the cache and resolve tha…
Browse files Browse the repository at this point in the history
…t using .select.
  • Loading branch information
jaraco committed May 29, 2021
1 parent f224121 commit e294994
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/virtualenv/run/plugin/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class PluginLoader(object):

@classmethod
def entry_points_for(cls, key):
return OrderedDict((e.name, e.load()) for e in cls.entry_points(group=key))
return OrderedDict((e.name, e.load()) for e in cls.entry_points().select(group=key))

@staticmethod
def entry_points(**kwargs):
def entry_points():
if PluginLoader._ENTRY_POINTS is None:
PluginLoader._ENTRY_POINTS = entry_points(**kwargs)
PluginLoader._ENTRY_POINTS = entry_points()
return PluginLoader._ENTRY_POINTS


Expand Down

0 comments on commit e294994

Please sign in to comment.