Improved entry points file

This commit is contained in:
Alex Mykyta
2022-11-11 15:00:11 -08:00
parent 4c34100a31
commit 3fc50e2c6a
2 changed files with 40 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ CPUIF_DICT = {
}
# Load any user-plugins
for ep in entry_points.get_entry_points("peakrdl_regblock.cpuif"): # type: ignore
for ep, dist in entry_points.get_entry_points("peakrdl_regblock.cpuif"):
name = ep.name
cpuif = ep.load()
if name in CPUIF_DICT: