1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 |
1 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 |
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt |
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt |
3 |
3 |
4 """Support for plugins.""" |
4 """Support for plugins.""" |
5 |
5 |
|
6 import os |
6 import os.path |
7 import os.path |
7 import sys |
8 import sys |
8 |
9 |
9 from coverage.misc import CoverageException |
10 from coverage.misc import CoverageException, isolate_module |
10 from coverage.plugin import CoveragePlugin, FileTracer, FileReporter |
11 from coverage.plugin import CoveragePlugin, FileTracer, FileReporter |
|
12 |
|
13 os = isolate_module(os) |
11 |
14 |
12 |
15 |
13 class Plugins(object): |
16 class Plugins(object): |
14 """The currently loaded collection of coverage.py plugins.""" |
17 """The currently loaded collection of coverage.py plugins.""" |
15 |
18 |