Steve Dower added the comment:

I thought that USERPROFILE was the preferred environment variable and should be 
checked before HOME, but I could be wrong. Consistency with the existing 
expanduser function is more important probably.

There's almost certainly an API to find an arbitrary user directory, but it may 
only be available to administrators, so the guess is probably necessary anyway. 
The directory name doesn't necessarily match the user name either, especially 
since a lot of Windows users these days authenticate with their email address.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19776>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to