diff --git a/python/ontoenv/__init__.py b/python/ontoenv/__init__.py index 492d84a..7bb01ad 100644 --- a/python/ontoenv/__init__.py +++ b/python/ontoenv/__init__.py @@ -1,8 +1,8 @@ """Python package shim for the ontoenv extension.""" # These symbols come from the Rust extension module built via maturin. -from ._native import OntoEnv, Ontology, run_cli, version # type: ignore[attr-defined] -from . import _native as _ext # type: ignore[attr-defined] +from ontoenv._native import OntoEnv, Ontology, run_cli, version # type: ignore[attr-defined] +from ontoenv import _native as _ext # type: ignore[attr-defined] __doc__ = getattr(_ext, "__doc__", None) # type: ignore[assignment] diff --git a/python/ontoenv/_cli.py b/python/ontoenv/_cli.py index 6a1c36a..c3ae016 100644 --- a/python/ontoenv/_cli.py +++ b/python/ontoenv/_cli.py @@ -2,7 +2,7 @@ import sys -from .ontoenv import run_cli as _run_cli +from ontoenv import run_cli as _run_cli def main(argv: list[str] | None = None) -> int: