correctly follow symlinks (no unknown modules anymore)
This commit is contained in:
parent
3b6bca66ca
commit
8a03778975
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ for root, dirs, files in os.walk(sys.argv[1]):
|
|||
for f in selection:
|
||||
f = f.replace('.pyc', '.py')
|
||||
try:
|
||||
f = os.readlink(f)
|
||||
f = os.path.abspath(os.path.join(os.path.split(f)[0], os.readlink(f)))
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue