Commit b7d0df4a authored by Jack Jansen's avatar Jack Jansen

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

parent 292b0f96
...@@ -65,6 +65,10 @@ realmain(argc, argv) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment