Add CWD to sys.path so CLI can import target modules.

This commit is contained in:
2026-08-13 21:12:59 +00:00
parent f8a0a85158
commit 8be44bd490
+2
View File
@@ -478,6 +478,8 @@ async def _run(args: argparse.Namespace) -> int:
def main(argv: list[str] | None = None) -> int:
"""Entry point for ``python -m kanta``."""
if "." not in sys.path:
sys.path.insert(0, ".")
args = _parse_args(argv)
try:
return asyncio.run(_run(args))