]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109853: Fix sys.path[0] For Subinterpreters (gh-109994)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 2 Oct 2023 19:59:05 +0000 (13:59 -0600)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 19:59:05 +0000 (19:59 +0000)
commita040a32ea2f13f16172394d3e3e3f80f47f25a68
tree35048792d20e773569686cdcfe06de881f823b2d
parentfc2cb86d210555d509debaeefd370d5331cd9d93
gh-109853: Fix sys.path[0] For Subinterpreters (gh-109994)

This change makes sure sys.path[0] is set properly for subinterpreters. Before, it wasn't getting set at all. This PR does not address the broader concerns from gh-109853.
Include/cpython/initconfig.h
Lib/test/test_embed.py
Lib/test/test_interpreters.py
Misc/NEWS.d/next/Core and Builtins/2023-09-27-18-01-06.gh-issue-109853.coQQiL.rst [new file with mode: 0644]
Modules/main.c
Python/initconfig.c
Python/pylifecycle.c