You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "coverage run" command sets sys.path[0] to be the directory containing the program being run, similar to what Python itself does. This makes it possible to import Django settings.
But "coverage report" and "coverage html" do not adjust the path. They are being run from /path/to/bin/coverage.py, so the current-directory-relative settings module can't be imported.
I think sys.path should include the current directory for those commands?
The Django coverage plugin has an issue about not being able to find settings: nedbat/django_coverage_plugin#3
The "coverage run" command sets
sys.path[0]
to be the directory containing the program being run, similar to what Python itself does. This makes it possible to import Django settings.But "coverage report" and "coverage html" do not adjust the path. They are being run from /path/to/bin/coverage.py, so the current-directory-relative settings module can't be imported.
I think sys.path should include the current directory for those commands?
The text was updated successfully, but these errors were encountered: