mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-04-25 19:58:56 +02:00
Fix Codacy check redefined-argument-from-local
This commit is contained in:
parent
459e573019
commit
f23510a4fc
@ -20,8 +20,8 @@ else:
|
|||||||
else:
|
else:
|
||||||
search_paths = os.defpath.split(os.pathsep)
|
search_paths = os.defpath.split(os.pathsep)
|
||||||
|
|
||||||
for path in search_paths:
|
for p in search_paths:
|
||||||
filepath = os.path.join(path, file)
|
filepath = os.path.join(p, file)
|
||||||
if os.path.exists(filepath) and os.access(filepath, mode):
|
if os.path.exists(filepath) and os.access(filepath, mode):
|
||||||
return filepath
|
return filepath
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user