From 97209b8556fc892d13a083797da78e2d393a1efb Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 13 Jun 2026 00:31:07 +0000 Subject: [PATCH] Don't make package root a module (debug). --- __init__.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 __init__.py diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 1e8622a..0000000 --- a/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -"""Project-root shim package for local development layout. - -This forwards imports to the inner `kanta/` package directory so -`from kanta import ...` works when running tests from the workspace root. -""" - -import importlib -from pathlib import Path - -_inner_pkg = Path(__file__).with_name("kanta") -if str(_inner_pkg) not in __path__: - __path__.append(str(_inner_pkg)) - -_pkg = importlib.import_module(".kanta", __name__) -__all__ = list(getattr(_pkg, "__all__", ())) -globals().update({name: getattr(_pkg, name) for name in __all__})