summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/boolcheck.py
diff options
context:
space:
mode:
authorTony Lownds <tony@lownds.com>2002-12-20 04:24:43 (GMT)
committerTony Lownds <tony@lownds.com>2002-12-20 04:24:43 (GMT)
commitf53dec2e4e8a017641db4de73456a2724a75e64b (patch)
treeecf208ab3789dd429ac9757287dc60cbe7835bbc /Lib/idlelib/boolcheck.py
parent24475896dd7c80695cb1b632fba37afd99d3b71b (diff)
downloadcpython-f53dec2e4e8a017641db4de73456a2724a75e64b.zip
cpython-f53dec2e4e8a017641db4de73456a2724a75e64b.tar.gz
cpython-f53dec2e4e8a017641db4de73456a2724a75e64b.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib/boolcheck.py')
-rw-r--r--Lib/idlelib/boolcheck.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/idlelib/boolcheck.py b/Lib/idlelib/boolcheck.py
new file mode 100644
index 0000000..bc988d7
--- /dev/null
+++ b/Lib/idlelib/boolcheck.py
@@ -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
+