mirror of
https://github.com/python/cpython.git
synced 2026-01-06 23:42:34 +00:00
[3.14] gh-143135: Fix sys.flags.inspect when PYTHONINSPECT=0 (GH-143136) (GH-143153)
(cherry picked from commit 3509fa5a12)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
This commit is contained in:
parent
6809811036
commit
73c40bb8ba
2 changed files with 5 additions and 1 deletions
|
|
@ -1845,7 +1845,9 @@ config_read_env_vars(PyConfig *config)
|
|||
_Py_get_env_flag(use_env, &config->parser_debug, "PYTHONDEBUG");
|
||||
_Py_get_env_flag(use_env, &config->verbose, "PYTHONVERBOSE");
|
||||
_Py_get_env_flag(use_env, &config->optimization_level, "PYTHONOPTIMIZE");
|
||||
_Py_get_env_flag(use_env, &config->inspect, "PYTHONINSPECT");
|
||||
if (!config->inspect && _Py_GetEnv(use_env, "PYTHONINSPECT")) {
|
||||
config->inspect = 1;
|
||||
}
|
||||
|
||||
int dont_write_bytecode = 0;
|
||||
_Py_get_env_flag(use_env, &dont_write_bytecode, "PYTHONDONTWRITEBYTECODE");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue