Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b7d0df4

Browse files
committed
Allow mac user to set "command line flags" by option-starting python.
1 parent 292b0f9 commit b7d0df4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/pythonmain.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ realmain(argc, argv)
6565
if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0')
6666
unbuffered = 1;
6767

68+
#ifdef macintosh
69+
PyMac_InteractiveOptions(&inspect, &verbose, &suppress_print, &unbuffered, &debugging);
70+
#endif
71+
6872
while ((c = getopt(argc, argv, "c:disuv")) != EOF) {
6973
if (c == 'c') {
7074
/* -c is the last option; following arguments

0 commit comments

Comments
 (0)