Add CWD to sys.path so CLI can import target modules.
This commit is contained in:
1 parent
f8a0a85158
commit
8be44bd490
1 file changed
+2
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user