Fix bug introduced by r59746.

This commit is contained in:
Georg Brandl 2008-01-05 21:20:19 +00:00
parent 60bad0e097
commit 673f7efa08
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ def _follow_symlinks(filepath):
""" In case filepath is a symlink, follow it until a """ In case filepath is a symlink, follow it until a
real file is reached. real file is reached.
""" """
filepath = _abspath(filepath) filepath = os.path.abspath(filepath)
while os.path.islink(filepath): while os.path.islink(filepath):
filepath = os.path.normpath( filepath = os.path.normpath(
os.path.join(filepath,os.readlink(filepath))) os.path.join(filepath,os.readlink(filepath)))