summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 14:50:42 +0000
committerGuido van Rossum <guido@python.org>1998-10-07 14:50:42 +0000
commit99e25b8c5498c3ce3b6b751fe8851117b9fa960c (patch)
tree498fcd450acddb404b26487c0673c2c0e25b30d1 /Python/pythonrun.c
parentdd70f5ef8f2191f103d6bf93e8ed8eafdc450e18 (diff)
downloadcpython-99e25b8c5498c3ce3b6b751fe8851117b9fa960c.tar.gz
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 7cff848422..1e26efcc71 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)