]> granicus.if.org Git - python/commitdiff
Support PYTHONOPTIMIZE variable; by Marc Lemburg.
authorGuido van Rossum <guido@python.org>
Wed, 7 Oct 1998 14:50:42 +0000 (14:50 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 7 Oct 1998 14:50:42 +0000 (14:50 +0000)
Python/pythonrun.c

index 7cff848422b7d6553eeee8cf669289c9403069d4..1e26efcc712ea53d3921c9b42785b2610a94251c 100644 (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)