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 eryksun
Recipients Anthony Sottile, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-03-12.18:01:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552413678.18.0.624281842137.issue36264@roundup.psfhosted.org>
In-reply-to
Content
> `os.path.expanduser` in `ntpath` uses `HOME` in preference to 
> `USERPROFILE` / `HOMEDRIVE\\HOMEPATH`

Guido intentionally added support for HOME in ntpath.expanduser way back in Python 1.5 (circa 1997), and now we're removing it over 20 years later. I expect this to break some deployments, but it's not a serious problem. 

My feeling here is "meh". Practically all use of expanduser() is dubious in Windows, varying from going against convention to being completely wrong. We're long due for a module in the standard library that abstracts access to platform-specific configuration and special directories, but attempts to adopt one keep losing momentum. I guess it's too prone to bike shedding and arguments.
History
Date User Action Args
2019-03-12 18:01:18eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Anthony Sottile
2019-03-12 18:01:18eryksunsetmessageid: <1552413678.18.0.624281842137.issue36264@roundup.psfhosted.org>
2019-03-12 18:01:18eryksunlinkissue36264 messages
2019-03-12 18:01:18eryksuncreate