Use isabs() in conditional, not abspath

This commit is contained in:
Andrew M. Kuchling 2004-08-02 14:54:16 +00:00
parent a3711f73c1
commit c75f11222c
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,7 @@ def _resolve_link(path):
paths_seen.append(path)
# Resolve where the link points to
resolved = os.readlink(path)
if not abspath(resolved):
if not isabs(resolved):
dir = dirname(path)
path = normpath(join(dir, resolved))
else: