Allow mac user to set "command line flags" by option-starting python.

This commit is contained in:
Jack Jansen 1995-07-29 13:53:59 +00:00
parent 292b0f96f3
commit b7d0df4a91
1 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,10 @@ realmain(argc, argv)
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0') if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
unbuffered = 1; unbuffered = 1;
#ifdef macintosh
PyMac_InteractiveOptions(&inspect, &verbose, &suppress_print, &unbuffered, &debugging);
#endif
while ((c = getopt(argc, argv, "c:disuv")) != EOF) { while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
if (c == 'c') { if (c == 'c') {
/* -c is the last option; following arguments /* -c is the last option; following arguments