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 steve.dower
Recipients Arfrever, Claudiu.Popa, antoine.pietri, cvrebert, fletom, neologix, pitrou, rominf, serhiy.storchaka, steve.dower, vajrasky, vstinner, zach.ware
Date 2014-12-28.20:07:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419797261.23.0.317766748306.issue19776@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-28 20:07:41steve.dowersetrecipients: + steve.dower, pitrou, vstinner, Arfrever, cvrebert, neologix, Claudiu.Popa, zach.ware, serhiy.storchaka, vajrasky, antoine.pietri, fletom, rominf
2014-12-28 20:07:41steve.dowersetmessageid: <1419797261.23.0.317766748306.issue19776@psf.upfronthosting.co.za>
2014-12-28 20:07:41steve.dowerlinkissue19776 messages
2014-12-28 20:07:40steve.dowercreate