Skip to content

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

Merged
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-7ea9a85-3.7
Aug 2, 2019
Merged

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

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

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

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 [email protected]
(cherry picked from commit 7ea9a85)

Co-authored-by: Timothy Hopper [email protected]

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 <[email protected]>
(cherry picked from commit 7ea9a85)

Co-authored-by: Timothy Hopper <[email protected]>
@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 1ff7dd6 into python:3.7 Aug 2, 2019
@miss-islington miss-islington deleted the backport-7ea9a85-3.7 branch August 2, 2019 22:40
@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