Enlarged version buffer (nobody expects the spanish inquisition:-)
Support for new sys.path code in config.c
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index 1ea02ad..b706464 100644
--- a/Mac/Python/macmain.c
+++ b/Mac/Python/macmain.c
@@ -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);
}