summaryrefslogtreecommitdiff
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-02-06 22:30:29 +0000
committerGuido van Rossum <guido@python.org>1998-02-06 22:30:29 +0000
commitfbd3062f9713b0b6a13a277d77a1f2292952077d (patch)
tree6a79c7f8bd76d3e69c16da5a1330bf7c996bf4c8 /Python/frozenmain.c
parent74f074dcf519f60e077fc07210406f5d499cca53 (diff)
downloadcpython-fbd3062f9713b0b6a13a277d77a1f2292952077d.tar.gz
Set Py_FrozenFlag, to suppress error messages from getpath.c.
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r--Python/frozenmain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c
index c823fa1fab..c1a8f3fe35 100644
--- a/Python/frozenmain.c
+++ b/Python/frozenmain.c
@@ -49,6 +49,8 @@ Py_FrozenMain(argc, argv)
int inspect = 0;
int unbuffered = 0;
+ Py_FrozenFlag = 1; /* Suppress errors from getpath.c */
+
if ((p = getenv("PYTHONINSPECT")) && *p != '\0')
inspect = 1;
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')