]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Enlarged version buffer (nobody expects the spanish inquisition:-)
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Dec 1994 13:47:30 +0000 (13:47 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 14 Dec 1994 13:47:30 +0000 (13:47 +0000)
Support for new sys.path code in config.c

Mac/Python/macmain.c

index 1ea02ad45f59b237f30456441e8b7d3416fd1168..b706464ef5234788b199c85c4de60b8836301261 100644 (file)
@@ -39,6 +39,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <console.h>
 #endif
 
+char *fileargument;
+
 main(argc, argv)
        int argc;
        char **argv;
@@ -51,7 +53,7 @@ main(argc, argv)
                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 @@ Motto: \"Nobody expects the Spanish Inquisition!\"",
        else
                console_options.title = "\pPython";
 #endif /* CONSOLE_IO */
+       if ( argc > 1 )
+               fileargument = argv[1];  /* Mod by Jack to do chdir */
        realmain(argc, argv);
 }