diff options
| author | Victor Stinner <vstinner@redhat.com> | 2018-07-24 11:55:48 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-24 11:55:48 (GMT) |
| commit | d19d8d5279f156bc8f6736b5f16f069879b9519b (patch) | |
| tree | dc3c2561371a0be4410172fe4270a37ab7c76ba6 /Include/internal/pystate.h | |
| parent | ac0b3c2f4d86fc056b833a4e6b9a380741244a63 (diff) | |
| download | cpython-d19d8d5279f156bc8f6736b5f16f069879b9519b.zip cpython-d19d8d5279f156bc8f6736b5f16f069879b9519b.tar.gz cpython-d19d8d5279f156bc8f6736b5f16f069879b9519b.tar.bz2 | |
bpo-34170: Add _PyCoreConfig.isolated (GH-8417)
* _PyCoreConfig: add isolated and site_import attributes
* Replace Py_IgnoreEnvironment with config->ignore_environment when
reading the current configuration
* _PyCoreConfig_Read() now sets ignore_environment, utf8_mode,
isolated and site_import from Py_IgnoreEnvironment, Py_UTF8Mode,
Py_IsolatedFlag and Py_NoSiteFlag
* _Py_InitializeCore() now sets Py_xxx flags from the configuration
* pymain_read_conf() now uses _PyCoreConfig_Copy() to save/restore
the configuration.
* Rename _disable_importlib of _PyCoreConfig to _install_importlib
* _PyCoreConfig_SetGlobalConfig() now also set
Py_HashRandomizationFlag
* Replace !Py_NoSiteFlag with core_config->site_import
Diffstat (limited to 'Include/internal/pystate.h')
| -rw-r--r-- | Include/internal/pystate.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/internal/pystate.h b/Include/internal/pystate.h index 6cee272..e041d37 100644 --- a/Include/internal/pystate.h +++ b/Include/internal/pystate.h @@ -52,17 +52,17 @@ typedef struct _PyPathConfig { wchar_t *program_name; /* Set by Py_SetPythonHome() or PYTHONHOME environment variable */ wchar_t *home; - /* isolated and no_site_import are used to set Py_IsolatedFlag and + /* isolated and site_import are used to set Py_IsolatedFlag and Py_NoSiteFlag flags on Windows in read_pth_file(). These fields are ignored when their value are equal to -1 (unset). */ int isolated; - int no_site_import; + int site_import; } _PyPathConfig; #define _PyPathConfig_INIT \ {.module_search_path = NULL, \ .isolated = -1, \ - .no_site_import = -1} + .site_import = -1} /* Note: _PyPathConfig_INIT sets other fields to 0/NULL */ PyAPI_DATA(_PyPathConfig) _Py_path_config; |
