Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa488ec commit dc3d606Copy full SHA for dc3d606
1 file changed
Python/pythonrun.c
@@ -108,11 +108,11 @@ Py_Initialize(void)
108
initialized = 1;
109
110
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
111
- Py_DebugFlag = 1;
+ Py_DebugFlag = Py_DebugFlag ? Py_DebugFlag : 1;
112
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
113
- Py_VerboseFlag = 1;
+ Py_VerboseFlag = Py_VerboseFlag ? Py_VerboseFlag : 1;
114
if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
115
- Py_OptimizeFlag = 1;
+ Py_OptimizeFlag = Py_OptimizeFlag ? Py_OptimizeFlag : 1;
116
117
interp = PyInterpreterState_New();
118
if (interp == NULL)
0 commit comments