You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-01-28.09:59:05.741>created_at=<Date2019-11-21.18:45:12.057>labels= ['3.8', 'library', '3.9']
title='Path.home() should ignore HOME env var like os.path.expanduser()'updated_at=<Date2020-01-28.09:59:47.636>user='https://github.com/lazka'
In bpo-36264 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:
New changeset c45a2aa by Steve Dower (Christoph Reiter) in branch 'master': bpo-38883: Don't use POSIX $HOME in pathlib.Path.home/expanduser on Windows (GH-17961) c45a2aa
New changeset 595b516 by Miss Islington (bot) in branch '3.8': bpo-38883: Don't use POSIX $HOME in pathlib.Path.home/expanduser on Windows (GH-17961) 595b516
HOME
inpathlib.Path.home/expanduser
on Windows #17961$HOME
inpathlib.Path.home/expanduser
on Windows (GH-17961) #18229Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: