[issue28334] netrc does not work if $HOME is not set

Dimitri Merejkowsky report at bugs.python.org
Mon Oct 10 14:09:55 EDT 2016


Dimitri Merejkowsky added the comment:

> if it make sense to run this on Windows

I found this issue while running cross-platform code. I needed to store some credentials, did not mind having them in plain-text and I thought .netrc was a good place for this. (did not need to re-invent the wheel ...)

>  don't know what unix users might reasonbly expect.

Well, I guess as a bonus of this patch we could add a link to the `os.path.expanduser` section[1] in `netrc` documentation.

The behavior when $HOME is not set is properly documented there.

[1] https://docs.python.org/3/library/os.path.html#os.path.expanduser

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28334>
_______________________________________


More information about the Python-bugs-list mailing list