Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
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 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:
Original comment by Jessamyn Smith (Bitbucket: jessamynsmith, GitHub: jessamynsmith)
I think this is sensible. It will definitely make developing plugins easier.
Sorry, something went wrong.
Fixed in 20125fe8762d (bb)
No branches or pull requests