is pathlib Path.resolve working as intended?

random832 at fastmail.us random832 at fastmail.us
Wed Dec 24 21:38:11 EST 2014


On Wed, Dec 24, 2014, at 09:09, Chris Cioffi wrote:
> PS:  For those who are curious, the 2 issues that seemed to hold things
> up the most are non-Unix systems (Windows) and how to handle when there
> is no home directory.  Posix only says that the results are undefined.  

What did they end up doing on windows? Many programs use USERPROFILE
variable, but supposedly the "correct" variables to use are
HOMEDRIVE/HOMEPATH or HOMESHARE. (they're the same directory by default,
but it's supposedly possible for them to be different if roaming
profiles are set up a certain way).

It might be worthwhile to have (both windows and modern unix systems in
the form of the freedesktop.org specs have APIs to get these) a way to
access the user's Desktop, Documents, etc folders directly.



More information about the Python-list mailing list