[issue36264] os.path.expanduser should not use HOME on windows

Christoph Reiter report at bugs.python.org
Thu Nov 21 11:34:43 EST 2019


Christoph Reiter <reiter.christoph at gmail.com> added the comment:

Was pathlib forgotten here? Pathlib.home() is documented to return the same as expanduser("~") but it still prefers HOME instead of USERPROFILE.

Note that this change has some effect on cygwin/mingw environments which all set HOME and now potentially lead to programs no longer being able to find their config files. Not that I disagree with this change, just that it seems a bit rushed to me.

----------
nosy: +lazka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36264>
_______________________________________


More information about the Python-bugs-list mailing list