diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-05 02:01:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 02:01:27 +0100 |
commit | cad1f747da47849ab5d8b0b881f7a0b94564d290 (patch) | |
tree | b66ed4ec4f2f26c08fde4989fbf2be680834973d /Python/sysmodule.c | |
parent | 7e9ce4c89e9a34ff84a89831812bc8b42d37ac1f (diff) | |
download | cpython-git-cad1f747da47849ab5d8b0b881f7a0b94564d290.tar.gz |
bpo-36142: Add _PyPreConfig structure (GH-12172)
* Add _PyPreConfig structure
* Move 'ignored' and 'use_environment' fields from _PyCoreConfig
to _PyPreConfig
* Add a new "_PyPreConfig preconfig;" field to _PyCoreConfig
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index dd39305f39..4b122805d7 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -2172,14 +2172,14 @@ make_flags(void) SetFlag(!config->write_bytecode); SetFlag(!config->user_site_directory); SetFlag(!config->site_import); - SetFlag(!config->use_environment); + SetFlag(!config->preconfig.use_environment); SetFlag(config->verbose); /* SetFlag(saw_unbuffered_flag); */ /* SetFlag(skipfirstline); */ SetFlag(config->bytes_warning); SetFlag(config->quiet); SetFlag(config->use_hash_seed == 0 || config->hash_seed != 0); - SetFlag(config->isolated); + SetFlag(config->preconfig.isolated); PyStructSequence_SET_ITEM(seq, pos++, PyBool_FromLong(config->dev_mode)); SetFlag(config->utf8_mode); #undef SetFlag |