-
-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
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? Sign in to your account
Executing python file, sys.path is replaced rather than inserted #142
Comments
I don't understand the issue: can you explain why your patch works and the original code doesn't? What does zc.buildout do that other code doesn't do? What is the symptom of the problem? |
Original comment by Anonymous I have no idea about zc.buildout but this patch fixes a practical issue when running unittest and coverage. Before the patch:
After the patch:
Previously I had to add '.' to PYTHONPATH in order to get unittest and coverage to cooperate.
|
This was fixed in October of 2011, in changeset 781082764b17 (bb). |
Originally reported by Anonymous
In coverage/execfile.py the current python module search path sys.argv is replaced rather inserted with the generated module path. This causes problems using coverage in a zc.buildout environment where sys.path is used to point to local installed eggs.
If required to understand the issue, I can try to come up with a patch.
The text was updated successfully, but these errors were encountered: