diff options
author | Tony Lownds <tony@lownds.com> | 2003-05-13 15:28:21 (GMT) |
---|---|---|
committer | Tony Lownds <tony@lownds.com> | 2003-05-13 15:28:21 (GMT) |
commit | 2398d578a367aa0f9155afb7275a5aec4e5caef9 (patch) | |
tree | 5a1a6c6b750dbf84f98a1d454af3322dc145a6c8 /Lib/idlelib/macosx_main.py | |
parent | e9a54a3eaf552a3ee37d93907dee2ad426ea74d0 (diff) | |
download | cpython-2398d578a367aa0f9155afb7275a5aec4e5caef9.zip cpython-2398d578a367aa0f9155afb7275a5aec4e5caef9.tar.gz cpython-2398d578a367aa0f9155afb7275a5aec4e5caef9.tar.bz2 |
1. The command-line arguments for subprocesses no longer need to be
specialized for Mac OS X.
2. buildapp.py - a new file for building an application icon for IDLE on Mac
OS X. See INSTALL.txt
Diffstat (limited to 'Lib/idlelib/macosx_main.py')
-rw-r--r-- | Lib/idlelib/macosx_main.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/Lib/idlelib/macosx_main.py b/Lib/idlelib/macosx_main.py deleted file mode 100644 index bc91a0b..0000000 --- a/Lib/idlelib/macosx_main.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env pythonw -# IDLE.app -# -# Installation: -# see the install_IDLE target in python/dist/src/Mac/OSX/Makefile -# -# Usage: -# -# 1. Double clicking IDLE icon will open IDLE. -# 2. Dropping file on IDLE icon will open that file in IDLE. -# 3. Launch from command line with files with this command-line: -# -# /Applications/Python/IDLE.app/Contents/MacOS/python file1 file2 file3 -# -# - -# Add IDLE.app/Contents/Resources/idlelib to path. -# __file__ refers to this file when it is used as a module, sys.argv[0] -# refers to this file when it is used as a script (pythonw macosx_main.py) -import sys - -from os.path import split, join, isdir -try: - __file__ -except NameError: - __file__ = sys.argv[0] -idlelib = join(split(__file__)[0], 'idlelib') -if isdir(idlelib): - sys.path.append(idlelib) - -# see if we are being asked to execute the subprocess code -if '-p' in sys.argv: - # run expects only the port number in sys.argv - sys.argv.remove('-p') - - # this module will become the namespace used by the interactive - # interpreter; remove all variables we have defined. - del sys, __file__, split, join, isdir, idlelib - __import__('run').main() -else: - # Load idlelib/idle.py which starts the application. - import idle |