From fa8b672c2a0a603b19c9f0b696186a67ef647e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sun, 30 Mar 2003 17:00:58 +0000 Subject: Patch #695250: Suppress COPYRIGHT if site.py is not read. Fixes #672614. --- Modules/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Modules/main.c b/Modules/main.c index b36714c..2620f33 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -322,9 +322,12 @@ Py_Main(int argc, char **argv) Py_Initialize(); if (Py_VerboseFlag || - (command == NULL && filename == NULL && stdin_is_interactive)) - fprintf(stderr, "Python %s on %s\n%s\n", - Py_GetVersion(), Py_GetPlatform(), COPYRIGHT); + (command == NULL && filename == NULL && stdin_is_interactive)) { + fprintf(stderr, "Python %s on %s\n", + Py_GetVersion(), Py_GetPlatform()); + if (!Py_NoSiteFlag) + fprintf(stderr, "%s\n", COPYRIGHT); + } if (command != NULL) { /* Backup _PyOS_optind and force sys.argv[0] = '-c' */ -- cgit v0.12