From 8445f0e500432f651491974adc3c9fd7ec77c014 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Tue, 20 Oct 2026 13:49:16 +0000 Subject: [PATCH] Fix vendored H3 package registration --- dumas_vendored_nodes.py | 10 ++++++---- vendor/__init__.py | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 vendor/__init__.py diff --git a/dumas_vendored_nodes.py b/dumas_vendored_nodes.py index 843b229..ea23c76 100644 --- a/dumas_vendored_nodes.py +++ b/dumas_vendored_nodes.py @@ -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 diff --git a/vendor/__init__.py b/vendor/__init__.py new file mode 100644 index 0000000..ee952f1 --- /dev/null +++ b/vendor/__init__.py @@ -0,0 +1 @@ +"""DUMAS-vendored upstream MiniMax H3 packages."""