From: Guido van Rossum Date: Fri, 6 Feb 1998 22:30:29 +0000 (+0000) Subject: Set Py_FrozenFlag, to suppress error messages from getpath.c. X-Git-Tag: v1.5.1~844 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=919b83d5221cf85585ab99347e427f384e0083c8;p=python Set Py_FrozenFlag, to suppress error messages from getpath.c. --- 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')