Skip to content

Commit e82d24d

Browse files
committed
Don't clobber sys.path[0]. #715
1 parent 745d8f2 commit e82d24d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ Change history for Coverage.py
1717
Unreleased
1818
----------
1919

20+
- Coverage commands no longer clobber the first entry in sys.path, fixing
21+
`issue 715`_.
22+
2023
- Improvements to context support:
2124

2225
- The "no such table: meta" error is fixed.: `issue 716`_.
2326

2427
- Combining data files now goes much faster.
2528

29+
.. _issue 715: https://github.com/nedbat/coveragepy/issues/715
2630
.. _issue 716: https://github.com/nedbat/coveragepy/issues/716
2731

2832

coverage/cmdline.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,10 +465,6 @@ def command_line(self, argv):
465465
if self.do_help(options, args, parser):
466466
return OK
467467

468-
# We need to be able to import from the current directory, because
469-
# plugins may try to, for example, to read Django settings.
470-
sys.path[0] = ''
471-
472468
# Listify the list options.
473469
source = unshell_list(options.source)
474470
omit = unshell_list(options.omit)

0 commit comments

Comments
 (0)