summaryrefslogtreecommitdiffstats
path: root/Python/fileutils.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-02 22:42:50 (GMT)
committerGitHub <noreply@github.com>2019-08-02 22:42:50 (GMT)
commit79af3bd1d170ed6a72a5c126e862590cdbf192d7 (patch)
treed9f543cae0145185b3babd35db92b32f18ef38f1 /Python/fileutils.c
parent375f35be0688da0fc0f27afc4faea76590d7c24d (diff)
downloadcpython-79af3bd1d170ed6a72a5c126e862590cdbf192d7.zip
cpython-79af3bd1d170ed6a72a5c126e862590cdbf192d7.tar.gz
cpython-79af3bd1d170ed6a72a5c126e862590cdbf192d7.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 'Python/fileutils.c')
0 files changed, 0 insertions, 0 deletions