diff options
Diffstat (limited to 'Mac/Python/macgetargv.c')
-rw-r--r-- | Mac/Python/macgetargv.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Mac/Python/macgetargv.c b/Mac/Python/macgetargv.c index a06b100..e0ecb8e 100644 --- a/Mac/Python/macgetargv.c +++ b/Mac/Python/macgetargv.c @@ -295,16 +295,19 @@ event_loop() /* Get the argv vector, return argc */ int -PyMac_GetArgv(pargv) +PyMac_GetArgv(pargv, noevents) char ***pargv; + int noevents; { arg_count = 0; arg_vector[arg_count++] = strdup(get_application_name()); - set_ae_handlers(); - event_loop(); - reset_ae_handlers(); + if( !noevents ) { + set_ae_handlers(); + event_loop(); + reset_ae_handlers(); + } arg_vector[arg_count] = NULL; |