homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Totte Karlsson
Recipients Totte Karlsson, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019年02月25日.23:21:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551136910.4.0.075710439537.issue36112@roundup.psfhosted.org>
In-reply-to
Content
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 python like this:
 import os
 myPath = "S:\\"
 print("Real path of: " + myPath + " is: " + os.path.realpath(myPath) )
prints
 Real path of: S:\ is: S:\
In the docs for the [subst][1] command, a substed drive is referred to as a *virtual* drive. Virtual, suggesting something being "not real", indicates that the Python *realpath* command is not working properly on Windows. 
 [1]: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/subst 
History
Date User Action Args
2019年02月25日 23:21:50Totte Karlssonsetrecipients: + Totte Karlsson, paul.moore, tim.golden, zach.ware, steve.dower
2019年02月25日 23:21:50Totte Karlssonsetmessageid: <1551136910.4.0.075710439537.issue36112@roundup.psfhosted.org>
2019年02月25日 23:21:50Totte Karlssonlinkissue36112 messages
2019年02月25日 23:21:50Totte Karlssoncreate

AltStyle によって変換されたページ (->オリジナル) /