summaryrefslogtreecommitdiff
path: root/Lib/idlelib/Bindings.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/Bindings.py')
-rw-r--r--Lib/idlelib/Bindings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/Bindings.py b/Lib/idlelib/Bindings.py
index a3c9fc45f8..1853ff93df 100644
--- a/Lib/idlelib/Bindings.py
+++ b/Lib/idlelib/Bindings.py
@@ -10,6 +10,7 @@ windows.
"""
import sys
from configHandler import idleConf
+import macosxSupport
menudefs = [
# underscore prefixes character to underscore
@@ -80,8 +81,7 @@ menudefs = [
]),
]
-import sys
-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.