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)
|
paths_seen.append(path)
|
||||||
# Resolve where the link points to
|
# Resolve where the link points to
|
||||||
resolved = os.readlink(path)
|
resolved = os.readlink(path)
|
||||||
if not abspath(resolved):
|
if not isabs(resolved):
|
||||||
dir = dirname(path)
|
dir = dirname(path)
|
||||||
path = normpath(join(dir, resolved))
|
path = normpath(join(dir, resolved))
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user