Mailing List Archive

CVS: python/dist/src/Mac/Python macmain.c,1.73,1.74
Update of /cvsroot/python/python/dist/src/Mac/Python
In directory usw-pr-cvs1:/tmp/cvs-serv22346

Modified Files:
macmain.c
Log Message:
In MachoPython print "Pythonw" in banner to distinguish from command-line
python.
Removed debug output.


Index: macmain.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Python/macmain.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** macmain.c 2 Jan 2002 22:53:38 -0000 1.73
--- macmain.c 29 Mar 2002 14:27:06 -0000 1.74
***************
*** 536,540 ****
main(int argc, char **argv)
{
- int i;
static char scriptpath[1024];
char *script = NULL;
--- 536,539 ----
***************
*** 557,567 ****
script = scriptpath;

- printf("original argc=%d\n", argc);
- for(i=0; i<argc; i++) printf("original argv[%d] = \"%s\"\n", i, argv[i]);
-
init_common(&argc, &argv, 0);

- printf("modified argc=%d\n", argc);
- for(i=0; i<argc; i++) printf("modified argv[%d] = \"%s\"\n", i, argv[i]);
}

--- 556,561 ----
***************
*** 635,639 ****
if (Py_VerboseFlag ||
(command == NULL && filename == NULL && isatty((int)fileno(fp))))
! fprintf(stderr, "Python %s on %s\n%s\n",
Py_GetVersion(), Py_GetPlatform(), COPYRIGHT);

--- 629,638 ----
if (Py_VerboseFlag ||
(command == NULL && filename == NULL && isatty((int)fileno(fp))))
! fprintf(stderr, "%s %s on %s\n%s\n",
! #if !TARGET_API_MAC_OSX
! "Python",
! #else
! "Pythonw",
! #endif
Py_GetVersion(), Py_GetPlatform(), COPYRIGHT);