mirror of https://github.com/python/cpython
Use isabs() in conditional, not abspath
This commit is contained in:
parent
a3711f73c1
commit
c75f11222c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue