Message336597
| Author |
eryksun |
| Recipients |
Totte Karlsson, eryksun, paul.moore, steve.dower, tim.golden, zach.ware |
| Date |
2019年02月26日.02:32:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1551148330.8.0.406019661835.issue36112@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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') |
|