summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macmain.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1997-06-03 15:28:29 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1997-06-03 15:28:29 (GMT)
commite3ae0dfeb796960885f86ce215f52191702e6a07 (patch)
treeed6da69a589cd0ba14cdffb3704da7c3cf95d966 /Mac/Python/macmain.c
parent4a79a4b0a9c45c2ea812de3f839c9f7327e871c8 (diff)
downloadcpython-e3ae0dfeb796960885f86ce215f52191702e6a07.zip
cpython-e3ae0dfeb796960885f86ce215f52191702e6a07.tar.gz
cpython-e3ae0dfeb796960885f86ce215f52191702e6a07.tar.bz2
Removed old scheduler parameterizing calls and replaced with something
a bit easier to use and understand
Diffstat (limited to 'Mac/Python/macmain.c')
-rw-r--r--Mac/Python/macmain.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c
index 811258a..8fd7bd2 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) {