]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-109853: Fix sys.path[0] For Subinterpreters (gh-109994) (gh-110701)
authorEric Snow <ericsnowcurrently@gmail.com>
Mon, 27 Nov 2023 22:21:12 +0000 (15:21 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Nov 2023 22:21:12 +0000 (22:21 +0000)
commit313554457e5a07e19e455cf6334925670be199a0
tree361379340c55d87d044314858aa52a0c7de93f69
parent592a849fdf72f03a05f7e05570fab539b2c89257
[3.12] gh-109853: Fix sys.path[0] For Subinterpreters (gh-109994) (gh-110701)

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.

(cherry-picked from commit a040a32ea2f13f16172394d3e3e3f80f47f25a68)
Doc/data/python3.12.abi
Include/internal/pycore_runtime.h
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/pylifecycle.c
Python/pystate.c