From e3ae0dfeb796960885f86ce215f52191702e6a07 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 3 Jun 1997 15:28:29 +0000 Subject: Removed old scheduler parameterizing calls and replaced with something a bit easier to use and understand --- Mac/Python/macmain.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Mac/Python/macmain.c') diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 811258a7ba..8fd7bd20ea 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -240,8 +240,15 @@ init_common(int *argcp, char ***argvp, int embedded) Py_VerboseFlag = options.verbose; Py_SuppressPrintingFlag = options.suppress_print; Py_DebugFlag = options.debugging; - if ( options.noargs ) - PyMac_DoYieldEnabled = 0; + if ( options.noargs ) { + /* don't process events at all without the scripts permission */ + PyMacSchedParams scp; + + PyMac_GetSchedParams(&scp); + scp.process_events = 0; + /* Should we disable command-dot as well? */ + PyMac_SetSchedParams(&scp); + } /* Set buffering */ if (options.unbuffered) { -- cgit v1.2.1