mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Set Py_FrozenFlag, to suppress error messages from getpath.c.
This commit is contained in:
parent
131c92c069
commit
919b83d522
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue