summaryrefslogtreecommitdiff
path: root/Lib/idlelib/keybindingDialog.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:35:05 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:35:05 +0000
commita97063a1086266e774586765b3c3e65ed2a4a1eb (patch)
tree7f16fd30f492457d5fbb0e3484c6f732743c6413 /Lib/idlelib/keybindingDialog.py
parentcea1ddb4aa6ccae552ff9838cb07c6802785b8fc (diff)
downloadcpython-git-a97063a1086266e774586765b3c3e65ed2a4a1eb.tar.gz
Fixes issues 3883 and 5194
Diffstat (limited to 'Lib/idlelib/keybindingDialog.py')
-rw-r--r--Lib/idlelib/keybindingDialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/keybindingDialog.py b/Lib/idlelib/keybindingDialog.py
index 1ce7ff4686..d6d1f18126 100644
--- a/Lib/idlelib/keybindingDialog.py
+++ b/Lib/idlelib/keybindingDialog.py
@@ -132,8 +132,8 @@ class GetKeysDialog(Toplevel):
order is also important: key binding equality depends on it, so
config-keys.def must use the same ordering.
"""
- import sys
- if sys.platform == 'darwin' and sys.argv[0].count('.app'):
+ import macosxSupport
+ if macosxSupport.runningAsOSXApp():
self.modifiers = ['Shift', 'Control', 'Option', 'Command']
else:
self.modifiers = ['Control', 'Alt', 'Shift']