summaryrefslogtreecommitdiffstats
path: root/Mac/IDLE
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-10-27 05:22:07 (GMT)
committerNed Deily <nad@acm.org>2013-10-27 05:22:07 (GMT)
commit246eb1105842c746a80865cd492502ad413949c2 (patch)
tree0d9fd036ad8c1056658dbe7f121e660acaf0d080 /Mac/IDLE
parent89d8cd943b25185e8d15b15636531ff84277bdab (diff)
downloadcpython-246eb1105842c746a80865cd492502ad413949c2.zip
cpython-246eb1105842c746a80865cd492502ad413949c2.tar.gz
cpython-246eb1105842c746a80865cd492502ad413949c2.tar.bz2
Issue #15663: Force IDLE.app to run the GUI process in 32-bit mode.
This mitigates the current Aqua Tk refresh problem on OS X 10.9 by backporting 2.7.x behavior and is transparent to the user.
Diffstat (limited to 'Mac/IDLE')
-rw-r--r--Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py b/Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py
index d6803ba..8b8beb9 100644
--- a/Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py
+++ b/Mac/IDLE/IDLE.app/Contents/Resources/idlemain.py
@@ -48,7 +48,7 @@ os.chdir(os.path.expanduser('~/Documents'))
# the interpreter in the framework, by following the symlink
# exported in PYTHONEXECUTABLE.
pyex = os.environ['PYTHONEXECUTABLE']
-sys.executable = os.path.join(os.path.dirname(pyex), os.readlink(pyex))
+sys.executable = os.path.join(sys.prefix, 'bin', 'python%d.%d'%(sys.version_info[:2]))
# Remove any sys.path entries for the Resources dir in the IDLE.app bundle.
p = pyex.partition('.app')
@@ -68,6 +68,8 @@ for idx, value in enumerate(sys.argv):
break
# Now it is safe to import idlelib.
+from idlelib import macosxSupport
+macosxSupport._appbundle = True
from idlelib.PyShell import main
if __name__ == '__main__':
main()