Fix Codacy check redefined-argument-from-local

parent 459e5730
......@@ -20,8 +20,8 @@ else:
else:
search_paths = os.defpath.split(os.pathsep)
for path in search_paths:
filepath = os.path.join(path, file)
for p in search_paths:
filepath = os.path.join(p, file)
if os.path.exists(filepath) and os.access(filepath, mode):
return filepath
return None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment