summaryrefslogtreecommitdiffstats
path: root/Mac/Python
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-03-29 14:27:06 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-03-29 14:27:06 (GMT)
commit0035fb27f4c633f838755ba1689d0e49eecf387b (patch)
treecdec4bff15f6902e772d5669af684eee121e641a /Mac/Python
parent0cd0e656ef6995c607e41c9283b031be8dcd3b7c (diff)
downloadcpython-0035fb27f4c633f838755ba1689d0e49eecf387b.zip
cpython-0035fb27f4c633f838755ba1689d0e49eecf387b.tar.gz
cpython-0035fb27f4c633f838755ba1689d0e49eecf387b.tar.bz2
In MachoPython print "Pythonw" in banner to distinguish from command-line
python. Removed debug output.
Diffstat (limited to 'Mac/Python')
-rw-r--r--Mac/Python/macmain.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index 71b42e9..02d0a82 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -535,7 +535,6 @@ locateResourcePy(char * resourceName, char * resourceURLCStr, int length) {
int
main(int argc, char **argv)
{
- int i;
static char scriptpath[1024];
char *script = NULL;
@@ -556,13 +555,8 @@ main(int argc, char **argv)
if (locateResourcePy("__main__.py", scriptpath, 1024))
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]);
}
Py_Main(argc, argv, script);
@@ -634,7 +628,12 @@ Py_Main(int argc, char **argv, char *filename)
if (Py_VerboseFlag ||
(command == NULL && filename == NULL && isatty((int)fileno(fp))))
- fprintf(stderr, "Python %s on %s\n%s\n",
+ fprintf(stderr, "%s %s on %s\n%s\n",
+#if !TARGET_API_MAC_OSX
+ "Python",
+#else
+ "Pythonw",
+#endif
Py_GetVersion(), Py_GetPlatform(), COPYRIGHT);
if (filename != NULL) {