src/
my_namespace/
a/
__init__.py
core.py
PYTHONPATH="${PWD}/src" uv tool run --from 'line-profiler==5.0.0' kernprof -l -m my_namespace.a.core
I expected that this would work. But I get this error:
`Could not find module `my_namespace.a.core`
Adding src/my_namespace/__init__.py fixes the error and profiling appears to work normally.