summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2023-10-02 19:59:05 (GMT)
committerGitHub <noreply@github.com>2023-10-02 19:59:05 (GMT)
commita040a32ea2f13f16172394d3e3e3f80f47f25a68 (patch)
tree35048792d20e773569686cdcfe06de881f823b2d /Include
parentfc2cb86d210555d509debaeefd370d5331cd9d93 (diff)
downloadcpython-a040a32ea2f13f16172394d3e3e3f80f47f25a68.zip
cpython-a040a32ea2f13f16172394d3e3e3f80f47f25a68.tar.gz
cpython-a040a32ea2f13f16172394d3e3e3f80f47f25a68.tar.bz2
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/initconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h
index ee13046..5d7b4e2 100644
--- a/Include/cpython/initconfig.h
+++ b/Include/cpython/initconfig.h
@@ -204,6 +204,9 @@ typedef struct PyConfig {
wchar_t *run_module;
wchar_t *run_filename;
+ /* --- Set by Py_Main() -------------------------- */
+ wchar_t *sys_path_0;
+
/* --- Private fields ---------------------------- */
// Install importlib? If equals to 0, importlib is not initialized at all.