mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-32030: Move PYTHONPATH to _PyMainInterpreterConfig (#4511)
Move _PyCoreConfig.module_search_path_env to _PyMainInterpreterConfig structure.
This commit is contained in:
parent
0784a2e5b1
commit
e32e79f7d8
6 changed files with 29 additions and 29 deletions
|
|
@ -30,7 +30,6 @@ typedef struct {
|
|||
unsigned long hash_seed;
|
||||
int _disable_importlib; /* Needed by freeze_importlib */
|
||||
const char *allocator; /* Memory allocator: _PyMem_SetupAllocators() */
|
||||
wchar_t *module_search_path_env; /* PYTHONPATH environment variable */
|
||||
int dev_mode; /* -X dev */
|
||||
int faulthandler; /* -X faulthandler */
|
||||
int tracemalloc; /* -X tracemalloc=N */
|
||||
|
|
@ -46,7 +45,6 @@ typedef struct {
|
|||
.hash_seed = 0, \
|
||||
._disable_importlib = 0, \
|
||||
.allocator = NULL, \
|
||||
.module_search_path_env = NULL, \
|
||||
.dev_mode = 0, \
|
||||
.faulthandler = 0, \
|
||||
.tracemalloc = 0, \
|
||||
|
|
@ -62,11 +60,13 @@ typedef struct {
|
|||
*/
|
||||
typedef struct {
|
||||
int install_signal_handlers;
|
||||
wchar_t *module_search_path_env; /* PYTHONPATH environment variable */
|
||||
} _PyMainInterpreterConfig;
|
||||
|
||||
#define _PyMainInterpreterConfig_INIT \
|
||||
(_PyMainInterpreterConfig){\
|
||||
.install_signal_handlers = -1}
|
||||
.install_signal_handlers = -1, \
|
||||
.module_search_path_env = NULL}
|
||||
|
||||
typedef struct _is {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue