◐ Shell
reader mode source ↗
Skip to content

bpo-42384: pdb: correctly populate sys.path[0]#23338

Merged
miss-islington merged 3 commits into
python:masterfrom
hexagonrecursion:fix-issue42383-and-issue42384
Jan 22, 2021
Merged

bpo-42384: pdb: correctly populate sys.path[0]#23338
miss-islington merged 3 commits into
python:masterfrom
hexagonrecursion:fix-issue42383-and-issue42384

Conversation

@hexagonrecursion

@hexagonrecursion hexagonrecursion commented Nov 17, 2020

Copy link
Copy Markdown
Contributor

https://bugs.python.org/issue42384

Automerge-Triggered-By: GH:gvanrossum

@the-knights-who-say-ni

This comment has been minimized.

@hexagonrecursion

This comment has been minimized.

@shihai1991

shihai1991 commented Nov 17, 2020

Copy link
Copy Markdown
Member

The new tests I added fail on Windows. I'll fix them later.

Thanks for your contribute, Looks like you need sign the CLA :)

@hexagonrecursion

This comment has been minimized.

@hexagonrecursion hexagonrecursion changed the title bpo-42383 and bpo-42384: pdb: reexecute the right file even if the current directory changes and correctly populate sys.path[0] Nov 19, 2020
@hexagonrecursion

Copy link
Copy Markdown
Contributor Author

Following this instructions

#23338 (comment)

My personal experience(NOT the official way):

* Creating the first PR to solve the fist issue you want fixed.

* After the first PR merged, we can add some description info in second issue, something like: `After PR-XXX merged, this issue should be resolved by the way.`. MAYBE you can create an another PR to add the testcase of the second issue.

I have updated the pull request.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Dec 20, 2020
@gvanrossum

Copy link
Copy Markdown
Member

This looks like the original behavior is just a bug (I think maybe far in the past the path value was always relative) and I am okay with backporting to 3.8 and 3.9.

@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Dec 23, 2020
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Jan 22, 2021
@miss-islington miss-islington merged commit 8603dfb into python:master Jan 22, 2021
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @hexagonrecursion for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8, 3.9.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

16 hidden items Load more…
@bedevere-bot

Copy link
Copy Markdown

GH-24290 is a backport of this pull request to the 3.9 branch.

@bedevere-bot

Copy link
Copy Markdown

GH-24291 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 22, 2021
Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 8603dfb)

Co-authored-by: Andrey Bienkowski <hexagonrecursion@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 22, 2021
Automerge-Triggered-By: GH:gvanrossum
(cherry picked from commit 8603dfb)

Co-authored-by: Andrey Bienkowski <hexagonrecursion@gmail.com>
@shihai1991

Copy link
Copy Markdown
Member

Thanks Andrey for your contirbute.
Thanks Guido for your review.

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.

6 participants