summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/PythonIDE.py
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2006-06-08 14:52:47 (GMT)
committerThomas Wouters <thomas@python.org>2006-06-08 14:52:47 (GMT)
commit1ba5b3b425e970ec3e4a19165475aa68fa5ac893 (patch)
tree607d666a002704ccb6a8cc5d1739b729a64cc615 /Mac/Tools/IDE/PythonIDE.py
parent4d70c3d9dded0f0fa7a73c67217a71111d05df4d (diff)
downloadcpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.zip
cpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.tar.gz
cpython-1ba5b3b425e970ec3e4a19165475aa68fa5ac893.tar.bz2
Merged revisions 46607-46608 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r46607 | neal.norwitz | 2006-06-03 06:49:00 +0200 (Sat, 03 Jun 2006) | 1 line Remove Mac OS 9 support (http://mail.python.org/pipermail/python-dev/2006-June/065538.html) ........ r46608 | martin.v.loewis | 2006-06-03 09:37:13 +0200 (Sat, 03 Jun 2006) | 2 lines Port to OpenBSD 3.9. Patch from Aldo Cortesi. ........
Diffstat (limited to 'Mac/Tools/IDE/PythonIDE.py')
-rw-r--r--Mac/Tools/IDE/PythonIDE.py59
1 files changed, 0 insertions, 59 deletions
diff --git a/Mac/Tools/IDE/PythonIDE.py b/Mac/Tools/IDE/PythonIDE.py
deleted file mode 100644
index b8f54a9..0000000
--- a/Mac/Tools/IDE/PythonIDE.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# copyright 1996-2001 Just van Rossum, Letterror. just@letterror.com
-
-# keep this (__main__) as clean as possible, since we are using
-# it like the "normal" interpreter.
-
-__version__ = '1.0.2'
-import sys
-import os
-
-def init():
- import MacOS
- if hasattr(MacOS, 'EnableAppswitch'):
- MacOS.EnableAppswitch(-1)
-
- try:
- import autoGIL
- except ImportError:
- pass
- else:
- autoGIL.installAutoGIL()
-
- from Carbon import Qd, QuickDraw
- Qd.SetCursor(Qd.GetCursor(QuickDraw.watchCursor).data)
-
- import macresource
- import sys, os
- macresource.need('DITL', 468, "PythonIDE.rsrc")
- widgetrespathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE", "Widgets.rsrc"]
- widgetresfile = os.path.join(*widgetrespathsegs)
- if not os.path.exists(widgetresfile):
- widgetrespathsegs = [os.pardir, "Tools", "IDE", "Widgets.rsrc"]
- widgetresfile = os.path.join(*widgetrespathsegs)
- refno = macresource.need('CURS', 468, widgetresfile)
- if os.environ.has_key('PYTHONIDEPATH'):
- # For development set this environment variable
- ide_path = os.environ['PYTHONIDEPATH']
- elif refno:
- # We're not a fullblown application
- idepathsegs = [sys.exec_prefix, "Mac", "Tools", "IDE"]
- ide_path = os.path.join(*idepathsegs)
- if not os.path.exists(ide_path):
- idepathsegs = [os.pardir, "Tools", "IDE"]
- for p in sys.path:
- ide_path = os.path.join(*([p]+idepathsegs))
- if os.path.exists(ide_path):
- break
-
- else:
- # We are a fully frozen application
- ide_path = sys.argv[0]
- if ide_path not in sys.path:
- sys.path.insert(1, ide_path)
-
-
-init()
-del init
-
-import PythonIDEMain as _PythonIDEMain
-_PythonIDEMain.PythonIDE()