18 lines
498 B
Python
18 lines
498 B
Python
from __future__ import annotations
|
|
|
|
import importlib.util
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
PACKAGE_NAME = "ComfyUI_H3_Continuum_Join"
|
|
if PACKAGE_NAME not in sys.modules:
|
|
spec = importlib.util.spec_from_file_location(
|
|
PACKAGE_NAME,
|
|
ROOT / "__init__.py",
|
|
submodule_search_locations=[str(ROOT)],
|
|
)
|
|
module = importlib.util.module_from_spec(spec)
|
|
module.__path__ = [str(ROOT)]
|
|
sys.modules[PACKAGE_NAME] = module
|