[issue43968] os.path.realpath() unexpected breaking change: resolves subst'd paths to real paths

Steve Dower report at bugs.python.org
Thu Apr 29 18:50:18 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

I think Eryk's point is that the behaviour is correct, and it's unfortunate that certain tools use realpath() when they don't actually mean it (I've been bitten by this too with pytest).

Presumably you want to replace realpath with abspath?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43968>
_______________________________________


More information about the Python-bugs-list mailing list