mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-02-06 05:29:33 +01:00
Fix Codacy check redefined-argument-from-local
This commit is contained in:
parent
459e573019
commit
f23510a4fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user