Correct setpath search order

Short-circuit the outer loop in setpath testing so that we stop
iterating through supplied path elements once a match is found.
This commit is contained in:
Jeremy Stanley
2016-09-19 15:25:18 +00:00
parent c63284ca35
commit 44546ef04d

View File

@@ -692,6 +692,8 @@ def data_index(path):
os.stat(candidate).st_mtime
)
break
if filename in datafiles:
break
return datafiles
def guess(