summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2023-10-14 21:32:57 (GMT)
committerGitHub <noreply@github.com>2023-10-14 21:32:57 (GMT)
commit84b7e9e3fa67fb9b92088d17839d8235f1cec62e (patch)
tree662ceaa5e4c9c4fd12695756ef3d0d199f85701d /Include/cpython
parentab08ff7882b6181fb785eed7410dbf8030aded70 (diff)
downloadcpython-84b7e9e3fa67fb9b92088d17839d8235f1cec62e.zip
cpython-84b7e9e3fa67fb9b92088d17839d8235f1cec62e.tar.gz
cpython-84b7e9e3fa67fb9b92088d17839d8235f1cec62e.tar.bz2
gh-110722: Add PYTHON_PRESITE to import a module before site.py is run (#110769)
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/initconfig.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h
index 808c105..87c059c 100644
--- a/Include/cpython/initconfig.h
+++ b/Include/cpython/initconfig.h
@@ -225,6 +225,12 @@ typedef struct PyConfig {
// If non-zero, turns on statistics gathering.
int _pystats;
#endif
+
+#ifdef Py_DEBUG
+ // If not empty, import a non-__main__ module before site.py is executed.
+ // PYTHON_PRESITE=package.module or -X presite=package.module
+ wchar_t *run_presite;
+#endif
} PyConfig;
PyAPI_FUNC(void) PyConfig_InitPythonConfig(PyConfig *config);