Author lazka
Recipients lazka
Date 2019-11-21.18:45:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574361912.09.0.220955326522.issue38883@roundup.psfhosted.org>
In-reply-to
Content
In issue36264 os.path.expanduser() was changed to no longer use the HOME environment variable on Windows.

There are two more ways in the stdlib to get the user directory, pathlib.Path.home() and pathlib.Path.expanduser() which internally use gethomedir() which still uses the HOME environment variable:

https://github.com/python/cpython/blob/0aca3a3a1e68b4ca2d334ab5255dfc267719096e/Lib/pathlib.py#L255

Since they are documented to work the same as os.path.expanduser() they should be changed to no longer use HOME as well.
History
Date User Action Args
2019-11-21 18:45:12lazkasetrecipients: + lazka
2019-11-21 18:45:12lazkasetmessageid: <1574361912.09.0.220955326522.issue38883@roundup.psfhosted.org>
2019-11-21 18:45:12lazkalinkissue38883 messages
2019-11-21 18:45:11lazkacreate