mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
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:
parent
24475896dd
commit
f53dec2e4e
5 changed files with 107 additions and 16 deletions
10
Lib/idlelib/boolcheck.py
Normal file
10
Lib/idlelib/boolcheck.py
Normal 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue