[issue36112] os.path.realpath on windows and substed drives

2019-02-25 Thread Eryk Sun
Eryk Sun 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

[issue36112] os.path.realpath on windows and substed drives

2019-02-25 Thread Totte Karlsson
New submission from Totte Karlsson : Python's os.path.realpath, when used with a substed drive on the Windows platform, don't resolve the substed path to the *real* path. For example creating a substed drive like this: subst z: C:\Users\Public\Desktop and checking for the real path in p