mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Fix bug introduced by r59746.
This commit is contained in:
parent
60bad0e097
commit
673f7efa08
1 changed files with 1 additions and 1 deletions
|
@ -860,7 +860,7 @@ def _follow_symlinks(filepath):
|
|||
""" In case filepath is a symlink, follow it until a
|
||||
real file is reached.
|
||||
"""
|
||||
filepath = _abspath(filepath)
|
||||
filepath = os.path.abspath(filepath)
|
||||
while os.path.islink(filepath):
|
||||
filepath = os.path.normpath(
|
||||
os.path.join(filepath,os.readlink(filepath)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue