diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-02 22:40:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-02 22:40:14 (GMT) |
commit | 1ff7dd681c7f3e31524bfada6d6d2786d4e37704 (patch) | |
tree | 3b9410ac7490d17d06801928c76c22e4d871c72d /Lib/genericpath.py | |
parent | 8990ac0ab0398bfb9c62031288030fe7c630c2c7 (diff) | |
download | cpython-1ff7dd681c7f3e31524bfada6d6d2786d4e37704.zip cpython-1ff7dd681c7f3e31524bfada6d6d2786d4e37704.tar.gz cpython-1ff7dd681c7f3e31524bfada6d6d2786d4e37704.tar.bz2 |
bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)
Previously pdb checked the $HOME environmental variable
to find the user .pdbrc. If $HOME is not set, the user
.pdbrc would not be found.
Change pdb to use `os.path.expanduser('~')` to determine
the user's home directory. Thus, if $HOME is not set (as
in tox or on Windows), os.path.expanduser('~') falls
back on other techniques for locating the user's home
directory.
This follows pip's implementation for loading .piprc.
Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org>
(cherry picked from commit 7ea9a85f132b32347fcbd2cbe1b553a2e9890b56)
Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
Diffstat (limited to 'Lib/genericpath.py')
0 files changed, 0 insertions, 0 deletions