mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-34170: Cleanup pymain_read_conf() (GH-8476)
* Config: Rename ignore_environment field to use_environment. * _PyCoreConfig_Read(): if isolated is set, use_environment and site_import are now always set to 0. * Inline pymain_free_raw() into pymain_free() * Move config_init_warnoptions() call into pymain_read_conf_impl() * _PyCoreConfig_Read(): don't replace values if they are already set: faulthandler, pycache_prefix, home.
This commit is contained in:
parent
5473f061f5
commit
d145775b45
3 changed files with 71 additions and 74 deletions
|
|
@ -77,7 +77,7 @@ main(int argc, char *argv[])
|
|||
_PyCoreConfig config = _PyCoreConfig_INIT;
|
||||
config.user_site_directory = 0;
|
||||
config.site_import = 0;
|
||||
config.ignore_environment = 1;
|
||||
config.use_environment = 0;
|
||||
config.program_name = L"./_freeze_importlib";
|
||||
/* Don't install importlib, since it could execute outdated bytecode. */
|
||||
config._install_importlib = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue