Set Py_FrozenFlag, to suppress error messages from getpath.c.

This commit is contained in:
Guido van Rossum 1998-02-06 22:30:29 +00:00
parent 131c92c069
commit 919b83d522
1 changed files with 2 additions and 0 deletions

View File

@ -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')