diff options
author | Guido van Rossum <guido@python.org> | 1998-10-07 14:50:42 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-07 14:50:42 (GMT) |
commit | 562f5b1480714a78a1981b8b4426f4d1e180a898 (patch) | |
tree | f6f7c3c1f81a3145cd22da160fe28b6cd9b91fe9 /Python | |
parent | e7adf3eb6df5ce8472a41876dd3d3209025aa9fc (diff) | |
download | cpython-562f5b1480714a78a1981b8b4426f4d1e180a898.zip cpython-562f5b1480714a78a1981b8b4426f4d1e180a898.tar.gz cpython-562f5b1480714a78a1981b8b4426f4d1e180a898.tar.bz2 |
Support PYTHONOPTIMIZE variable; by Marc Lemburg.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 2 |
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) |