mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Revert to revision 1.3; Mac OS X has a platform specific startup script, macosx_main.py
This commit is contained in:
parent
103ee91410
commit
b0bfd0f4aa
@ -1,17 +1,4 @@
|
||||
#! /usr/bin/env python
|
||||
|
||||
import sys as _sys
|
||||
|
||||
# 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 namepsace used by the interactive
|
||||
# interpreter; remove all variables we have defined.
|
||||
del _sys
|
||||
__import__('run').main()
|
||||
else:
|
||||
# Start the IDLE GUI
|
||||
import PyShell
|
||||
PyShell.main()
|
||||
import PyShell
|
||||
PyShell.main()
|
||||
|
Loading…
Reference in New Issue
Block a user