Skip to content

Commit

Permalink
use select syntax for entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
CagtayFabry committed Aug 5, 2024
1 parent dc9bbe8 commit b6a0399
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion weldx/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ def enable_quality_standard(name: str, version: AsdfVersion | str = None):
@staticmethod
def load_installed_standards():
"""Load all standards that are installed to the active virtual environment."""
for entry_point in importlib.metadata.entry_points()["weldx.standard"]:
for entry_point in importlib.metadata.entry_points().select(
group="weldx.standard"
):
standards = entry_point.load()()
if not isinstance(standards, list):
standards = [standards]
Expand Down

0 comments on commit b6a0399

Please sign in to comment.