Skip to content

[3.8] bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)#15085

Merged
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-7ea9a85-3.8
Aug 2, 2019
Merged

[3.8] bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)#15085
miss-islington merged 1 commit into
python:3.8from
miss-islington:backport-7ea9a85-3.8

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 2, 2019

Copy link
Copy Markdown
Contributor

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 7ea9a85)

Co-authored-by: Timothy Hopper tdhopper@users.noreply.github.com

https://bugs.python.org/issue20523

)

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 7ea9a85)

Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@tdhopper and @zooba: Status check is done, and it's a success ✅ .

@miss-islington
miss-islington merged commit 79af3bd into python:3.8 Aug 2, 2019
@miss-islington
miss-islington deleted the backport-7ea9a85-3.8 branch August 2, 2019 22:42
@miss-islington

Copy link
Copy Markdown
Contributor Author

@tdhopper and @zooba: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington

Copy link
Copy Markdown
Contributor Author

@tdhopper and @zooba: Status check is done, and it's a success ✅ .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants