To be more strictly a command wrapper, coveragepy should respect the $PATH environment variable (ala execp). By "strictly a command wrapper", I mean that
coverage run myscript should behave similarly to simply running
myscript. Think of the
I often end up having to use
-m with coverage run, which causes weird issues in the worst case (using runpy adds '' to the pythonpath :( ), and also doesn't use the console-script like the user would, which is desirable for functional tests.
If you'd add some notes as to which code and tests I'd need to touch to add this feature, I can work on a patch.
This would simplify my usage of coveragepy in all of our team's packages.