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:
@@ -692,6 +692,8 @@ def data_index(path):
|
||||
os.stat(candidate).st_mtime
|
||||
)
|
||||
break
|
||||
if filename in datafiles:
|
||||
break
|
||||
return datafiles
|
||||
|
||||
def guess(
|
||||
|
||||
Reference in New Issue
Block a user