Skip to content

Commit 60c1d8a

Browse files
committed
Use a relative path to the template. Closes #2
1 parent be943e4 commit 60c1d8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_coverage_plugin/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def __init__(self, filename):
139139
# API of the coverage plugin?
140140
self.filename = filename
141141
# TODO: is self.name required? Can the base class provide it somehow?
142-
self.name = os.path.basename(filename)
142+
self.name = os.path.relpath(filename)
143143
# TODO: html filenames are absolute.
144144

145145
def statements(self):

0 commit comments

Comments
 (0)