summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/pythonrun.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 7cff848..1e26efc 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -117,6 +117,8 @@ Py_Initialize()
Py_DebugFlag = 1;
if ((p = getenv("PYTHONVERBOSE")) && *p != '\0')
Py_VerboseFlag = 1;
+ if ((p = getenv("PYTHONOPTIMIZE")) && *p != '\0')
+ Py_OptimizeFlag = 1;
interp = PyInterpreterState_New();
if (interp == NULL)