Skip to content

Conversation

@ericsnowcurrently
Copy link
Member

This change makes sure sys.path[0] is set properly for subinterpreters. Before, it wasn't getting set at all.

This change does not address the broader concerns from gh-109853.

Note that here, unlike in main, we do not add PyConfig.sys_path_0, since that changes the ABI. Instead, we add _PyRuntimeState.sys_path_0.

(cherry-picked from commit a040a32)

…-109994) This change makes sure sys.path[0] is set properly for subinterpreters. Before, it wasn't getting set at all. This change does not address the broader concerns from pythongh-109853. (cherry-picked from commit a040a32)
@ericsnowcurrentlyericsnowcurrently enabled auto-merge (squash) November 27, 2023 22:15
@ericsnowcurrentlyericsnowcurrently merged commit 3135544 into python:3.12Nov 27, 2023
@ericsnowcurrentlyericsnowcurrently deleted the backport-a040a32-fix-sys-path-0 branch November 27, 2023 22:22
Sign up for freeto 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.

2 participants

@ericsnowcurrently@Yhg1s