summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 2b8727d4..0b5651cb 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -13,12 +13,14 @@ import sys
from coverage import env
from coverage.backward import unicode_class
-from coverage.misc import CoverageException, join_regex
+from coverage.misc import CoverageException, join_regex, isolate_module
RELATIVE_DIR = None
CANONICAL_FILENAME_CACHE = {}
+os = isolate_module(os)
+
def set_relative_directory():
"""Set the directory that `relative_filename` will be relative to."""