Skip to content

Commit 5c46700

Browse files
authored
Fix _find_file parent stop condition
see HBNetwork#172
1 parent 0573e6f commit 5c46700

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decouple.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _find_file(self, path):
219219

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

225225
# reached root without finding any files.

0 commit comments

Comments
 (0)