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

Skip to content

Commit 6ff228c

Browse files
committed
If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".
1 parent e7bfc91 commit 6ff228c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mac/Python/macmain.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,9 @@ Py_Main(argc, argv)
544544
void
545545
PyMac_OutputSeen()
546546
{
547+
#ifdef USE_GUSI
547548
gusisioux_state = GUSISIOUX_STATE_LASTREAD;
549+
#endif
548550
}
549551

550552
/*
@@ -567,11 +569,15 @@ PyMac_Exit(status)
567569
keep = 0;
568570
break;
569571
case POPT_KEEPCONSOLE_OUTPUT:
572+
#ifdef USE_GUSI
570573
if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE ||
571574
gusisioux_state == GUSISIOUX_STATE_UNKNOWN )
572575
keep = 1;
573576
else
574577
keep = 0;
578+
#else
579+
keep = 1;
580+
#endif
575581
break;
576582
case POPT_KEEPCONSOLE_ERROR:
577583
keep = (status != 0);

0 commit comments

Comments
 (0)