We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9307e6 commit a27bd9eCopy full SHA for a27bd9e
django_coverage_plugin/plugin.py
@@ -156,9 +156,9 @@ class DjangoTemplatePlugin(
156
def __init__(self):
157
self.debug_checked = False
158
159
- self.django_template_dir = os.path.realpath(
+ self.django_template_dir = os.path.normcase(os.path.realpath(
160
os.path.dirname(django.template.__file__)
161
- )
+ ))
162
163
self.source_map = {}
164
@@ -175,7 +175,7 @@ def sys_info(self):
175
]
176
177
def file_tracer(self, filename):
178
- if filename.startswith(self.django_template_dir):
+ if os.path.normcase(filename).startswith(self.django_template_dir):
179
if not self.debug_checked:
180
# Keep calling check_debug until it returns True, which it
181
# will only do after settings have been configured
0 commit comments