"""OCP — Python bindings for the OpenCASCADE (OCCT) geometry kernel. Installs under the same import path as ``cadquery-ocp``/``cadquery-ocp-novtk`` so it is a drop-in replacement; the two can never be installed together, and a process can only ever hold one OCCT build. The compiled extension registers every ``OCP.*`` submodule directly in ``sys.modules``, so ``import OCP.TopoDS`` works without a shim module per name. This file only re-exports them as attributes, so ``OCP.TopoDS`` also resolves after a bare ``import OCP``. """ from __future__ import annotations import sys from . import _OCP __version__ = _OCP.__version__ __occt_version__ = _OCP.__occt_version__ for _name in _OCP.__all_modules__: setattr(sys.modules[__name__], _name, sys.modules[f"OCP.{_name}"]) __all__ = [*_OCP.__all_modules__, "__version__", "__occt_version__"]