Skip to content

Commit 4a11094

Browse files
authored
Fix infinite recursion on Windows
1 parent 39d70aa commit 4a11094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decouple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def _find_file(self, path):
216216

217217
# search the parent
218218
parent = os.path.dirname(path)
219-
if parent and parent != os.path.abspath(os.sep):
219+
if parent and os.path.normcase(parent) != os.path.normcase(os.path.abspath(os.sep)):
220220
return self._find_file(parent)
221221

222222
# reached root without finding any files.

0 commit comments

Comments
 (0)