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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=919b83d5221cf85585ab99347e427f384e0083c8;p=thirdparty%2FPython%2Fcpython.git Set Py_FrozenFlag, to suppress error messages from getpath.c. --- diff --git a/Python/frozenmain.c b/Python/frozenmain.c index c823fa1fab86..c1a8f3fe35b1 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')