diff options
-rw-r--r-- | CHANGES.rst | 4 | ||||
-rw-r--r-- | coverage/cmdline.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CHANGES.rst b/CHANGES.rst index cb08ec6f..8845d7e5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -17,12 +17,16 @@ Change history for Coverage.py Unreleased ---------- +- Coverage commands no longer clobber the first entry in sys.path, fixing + `issue 715`_. + - Improvements to context support: - The "no such table: meta" error is fixed.: `issue 716`_. - Combining data files now goes much faster. +.. _issue 715: https://github.com/nedbat/coveragepy/issues/715 .. _issue 716: https://github.com/nedbat/coveragepy/issues/716 diff --git a/coverage/cmdline.py b/coverage/cmdline.py index edbc1d25..e6ea6e23 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -465,10 +465,6 @@ class CoverageScript(object): if self.do_help(options, args, parser): return OK - # We need to be able to import from the current directory, because - # plugins may try to, for example, to read Django settings. - sys.path[0] = '' - # Listify the list options. source = unshell_list(options.source) omit = unshell_list(options.omit) |