Eryk Sun <[email protected]> added the comment:
In Windows, realpath is currently an alias for abspath. Issue 14094 has a
pending PR that implements realpath, but it's waiting on improved tests and
final approval. I'm afraid it won't make it into 3.8.
I suggest using the resolve() method of a pathlib.Path. For example:
>>> os.system('subst W: C:\\Windows')
0
>>> pathlib.Path('W:\\').resolve()
WindowsPath('C:/Windows')
----------
nosy: +eryksun
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> ntpath.realpath() should use GetFinalPathNameByHandle()
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36112>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com