summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 14:50:42 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-07 14:50:42 (GMT)
commit562f5b1480714a78a1981b8b4426f4d1e180a898 (patch)
treef6f7c3c1f81a3145cd22da160fe28b6cd9b91fe9 /Python/pythonrun.c
parente7adf3eb6df5ce8472a41876dd3d3209025aa9fc (diff)
downloadcpython-562f5b1480714a78a1981b8b4426f4d1e180a898.zip
cpython-562f5b1480714a78a1981b8b4426f4d1e180a898.tar.gz
cpython-562f5b1480714a78a1981b8b4426f4d1e180a898.tar.bz2
Support PYTHONOPTIMIZE variable; by Marc Lemburg.
Diffstat (limited to 'Python/pythonrun.c')
-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)