summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/Bindings.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-02-12 15:01:44 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-02-12 15:01:44 (GMT)
commit827822ef3f389548ca2ac11b11c5e498f45fe78a (patch)
tree94532be2aa8126ef966cff4f1f7c0d7d35871b37 /Lib/idlelib/Bindings.py
parentde09acf2984b6699aa7a45c2ea2429c6da5f046e (diff)
downloadcpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.zip
cpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.tar.gz
cpython-827822ef3f389548ca2ac11b11c5e498f45fe78a.tar.bz2
Fix for issue5194, based on a patch by Ned Deily.
Diffstat (limited to 'Lib/idlelib/Bindings.py')
-rw-r--r--Lib/idlelib/Bindings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py
index 13e2a33..74a93d3 100644
--- a/Lib/idlelib/Bindings.py
+++ b/Lib/idlelib/Bindings.py
@@ -10,6 +10,7 @@ windows.
"""
import sys
from idlelib.configHandler import idleConf
+from idlelib import macosxSupport
menudefs = [
# underscore prefixes character to underscore
@@ -80,7 +81,7 @@ menudefs = [
]),
]
-if sys.platform == 'darwin' and '.app' in sys.executable:
+if macosxSupport.runningAsOSXApp():
# Running as a proper MacOS application bundle. This block restructures
# the menus a little to make them conform better to the HIG.