summaryrefslogtreecommitdiff
path: root/Lib/idlelib/macosxSupport.py
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:35:38 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2009-03-04 21:35:38 +0000
commitde3dfc1635390678895fbfff9caef986357efab7 (patch)
tree8c3d8fa116aaa3f7062981c43313bf6a6445c6b2 /Lib/idlelib/macosxSupport.py
parent5302a3011e06ad87b08855d37a230e45df596325 (diff)
downloadcpython-git-de3dfc1635390678895fbfff9caef986357efab7.tar.gz
Merged revisions 70176 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70176 | ronald.oussoren | 2009-03-04 22:35:05 +0100 (Wed, 04 Mar 2009) | 2 lines Fixes issues 3883 and 5194 ........
Diffstat (limited to 'Lib/idlelib/macosxSupport.py')
-rw-r--r--Lib/idlelib/macosxSupport.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/idlelib/macosxSupport.py b/Lib/idlelib/macosxSupport.py
index 279b1cc18e..98b35b6a65 100644
--- a/Lib/idlelib/macosxSupport.py
+++ b/Lib/idlelib/macosxSupport.py
@@ -6,8 +6,12 @@ import sys
import Tkinter
def runningAsOSXApp():
- """ Returns True iff running from the IDLE.app bundle on OSX """
- return (sys.platform == 'darwin' and 'IDLE.app' in sys.argv[0])
+ """
+ Returns True if Python is running from within an app on OSX.
+ If so, assume that Python was built with Aqua Tcl/Tk rather than
+ X11 Tck/Tk.
+ """
+ return (sys.platform == 'darwin' and '.app' in sys.executable)
def addOpenEventSupport(root, flist):
"""