Skip to content

bpo-38234: read_pth_file() now returns PyStatus#16338

Merged
vstinner merged 1 commit intopython:masterfrom
vstinner:pathconfig
Sep 23, 2019
Merged

bpo-38234: read_pth_file() now returns PyStatus#16338
vstinner merged 1 commit intopython:masterfrom
vstinner:pathconfig

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 23, 2019

Refactor path configuration code:

  • read_pth_file() now returns PyStatus to report errors, rather than
    calling Py_FatalError().
  • Move argv0_path and zip_path buffers out of PyCalculatePath
    structures.
  • On Windows, _PyPathConfig.home is now preferred over PyConfig.home.

https://bugs.python.org/issue38234

Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Copy Markdown
Contributor

I'm having trouble backporting to 3.8. Reason: 'Error 110 while writing to socket. Connection timed out.'. Please retry by removing and re-adding the needs backport to 3.8 label.

@miss-islington
Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot
Copy link
Copy Markdown

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

miss-islington added a commit that referenced this pull request Sep 23, 2019
Refactor path configuration code:

* read_pth_file() now returns PyStatus to report errors, rather than
  calling Py_FatalError().
* Move argv0_path and zip_path buffers out of PyCalculatePath
  structures.
* On Windows, _PyPathConfig.home is now preferred over PyConfig.home.
(cherry picked from commit 85ce0a7)

Co-authored-by: Victor Stinner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants