Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 919b83d

Browse files
committed
Set Py_FrozenFlag, to suppress error messages from getpath.c.
1 parent 131c92c commit 919b83d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Python/frozenmain.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Py_FrozenMain(argc, argv)
4949
int inspect = 0;
5050
int unbuffered = 0;
5151

52+
Py_FrozenFlag = 1; /* Suppress errors from getpath.c */
53+
5254
if ((p = getenv("PYTHONINSPECT")) && *p != '\0')
5355
inspect = 1;
5456
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')

0 commit comments

Comments
 (0)