Update way a subprocess is launched for Mac OS X.

Another applet mechanism has been developed for Python on Mac OS X and
trying to use the -c "__import__('run').main()" trick is just not working.

macosx_main.py is a new file which should be used as the startup file for
Mac OS X applet bundles. This startup file understands a -p option, which
when seen will start run.main(). When running as an applet, this seems like
the best approach.
This commit is contained in:
Tony Lownds 2002-12-20 04:24:43 +00:00
parent 24475896dd
commit f53dec2e4e
5 changed files with 107 additions and 16 deletions

10
Lib/idlelib/boolcheck.py Normal file
View file

@ -0,0 +1,10 @@
"boolcheck - import this module to ensure True, False, bool() builtins exist."
try:
True
except NameError:
import __builtin__
__builtin__.True = 1
__builtin__.False = 0
from operator import truth
__builtin__.bool = truth