diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/control.py b/coverage/control.py index 07551ff..44a70bf 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -214,7 +214,8 @@ class coverage(object): def _canonical_dir(self, morf): """Return the canonical directory of the module or file `morf`.""" - return os.path.split(PythonCodeUnit(morf, self.file_locator).filename)[0] + morf_filename = PythonCodeUnit(morf, self.file_locator).filename + return os.path.split(morf_filename)[0] def _source_for_file(self, filename): """Return the source file for `filename`.""" |