Fix vendored H3 package registration
This commit is contained in:
@@ -13,9 +13,9 @@ import logging
|
||||
|
||||
|
||||
_PACKAGES = (
|
||||
("vendor.dumas_h3_continuum", "H3 Continuum"),
|
||||
("vendor.dumas_minimax_h3_refmod", "MiniMax H3 RefMod"),
|
||||
("vendor.dumas_h3_refmod_picker", "H3 RefMod Picker"),
|
||||
(".vendor.dumas_h3_continuum", "H3 Continuum"),
|
||||
(".vendor.dumas_minimax_h3_refmod", "MiniMax H3 RefMod"),
|
||||
(".vendor.dumas_h3_refmod_picker", "H3 RefMod Picker"),
|
||||
)
|
||||
|
||||
|
||||
@@ -32,7 +32,9 @@ def _load_pack(package_name):
|
||||
def _namespaced_mappings():
|
||||
mappings = {}
|
||||
display = {}
|
||||
for package_name, label in _PACKAGES:
|
||||
for relative_name, label in _PACKAGES:
|
||||
package_name = (f"{__package__}{relative_name}" if __package__
|
||||
else relative_name.lstrip("."))
|
||||
pack = _load_pack(package_name)
|
||||
if pack is None:
|
||||
continue
|
||||
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
"""DUMAS-vendored upstream MiniMax H3 packages."""
|
||||
Reference in New Issue
Block a user