Support PYTHONOPTIMIZE variable; by Marc Lemburg.

This commit is contained in:
Guido van Rossum 1998-10-07 14:50:42 +00:00
parent e7adf3eb6d
commit 562f5b1480
1 changed files with 2 additions and 0 deletions

View File

@ -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)