diff options
author | Guido van Rossum <guido@python.org> | 1998-02-06 22:30:29 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-06 22:30:29 (GMT) |
commit | 919b83d5221cf85585ab99347e427f384e0083c8 (patch) | |
tree | b3689b6af10dc2cf81eaabe4b9481c8d00e3e128 | |
parent | 131c92c069d07f01b9492522f257e7668f32631e (diff) | |
download | cpython-919b83d5221cf85585ab99347e427f384e0083c8.zip cpython-919b83d5221cf85585ab99347e427f384e0083c8.tar.gz cpython-919b83d5221cf85585ab99347e427f384e0083c8.tar.bz2 |
Set Py_FrozenFlag, to suppress error messages from getpath.c.
-rw-r--r-- | Python/frozenmain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c index c823fa1..c1a8f3f 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') |