diff Mac/Python/macmain.c @ 2031:1739f00ffc86 legacy-trunk

Enlarged version buffer (nobody expects the spanish inquisition:-) Support for new sys.path code in config.c
author Jack Jansen <jack.jansen@cwi.nl>
date Wed, 14 Dec 1994 13:47:30 +0000
parents 40594f80ab3c
children b4d982c648bb
line wrap: on
line diff
--- a/Mac/Python/macmain.c	Wed Dec 14 13:45:11 1994 +0000
+++ b/Mac/Python/macmain.c	Wed Dec 14 13:47:30 1994 +0000
@@ -39,6 +39,8 @@
 #include <console.h>
 #endif
 
+char *fileargument;
+
 main(argc, argv)
 	int argc;
 	char **argv;
@@ -51,7 +53,7 @@
 		extern char *about_message;
 		extern char *about_item;
 		extern char *getversion(), *getcopyright();
-		static char buf[256];
+		static char buf[1024];
 		sprintf(buf, "Python %s\r\
 \r\
 %s\r\
@@ -76,5 +78,7 @@
 	else
 		console_options.title = "\pPython";
 #endif /* CONSOLE_IO */
+	if ( argc > 1 )
+		fileargument = argv[1];  /* Mod by Jack to do chdir */
 	realmain(argc, argv);
 }