summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1994-12-14 13:47:30 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1994-12-14 13:47:30 (GMT)
commitbac428d2e092d3d18b3556c5239964b8af4dc8bd (patch)
treee47b6b556fd10e13fdfebd8b6d35e942b1a93748 /Mac
parentc5b26f4a05f6cfcc3fbf474d70af57d42f7a1439 (diff)
downloadcpython-bac428d2e092d3d18b3556c5239964b8af4dc8bd.zip
cpython-bac428d2e092d3d18b3556c5239964b8af4dc8bd.tar.gz
cpython-bac428d2e092d3d18b3556c5239964b8af4dc8bd.tar.bz2
Enlarged version buffer (nobody expects the spanish inquisition:-)
Support for new sys.path code in config.c
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Python/macmain.c6
1 files changed, 5 insertions, 1 deletions
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 @@ 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);
}