Eryk Sun <eryk...@gmail.com> added the comment:

If realpath() resolves too much, you'll have to resolve manually via 
os.path.islink() and os.readlink(). If you need strict resolution, use 
pathlib.Path.resolve(). In strict mode it raises FileNotFoundError if a path 
component doesn't exist. Also, even in non-strict mode, it raises RuntimeError 
for a symlink loop.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43810>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to