mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00

M idle M idle.py M idle.pyw M setup.py Switch back to installing IDLE as a package. The IDLE GUI and the subprocess will both attempt to start up via the package mechanism, but if IDLE is not yet installed it is possible to run by calling python idle.py in the IDLE source directory, or to add the source directory to sys.path. One advantage of doing it this way is IDLE stays off sys.path. Developed in collaboration with Tony Lownds.
9 lines
192 B
Python
9 lines
192 B
Python
#! /usr/bin/env python
|
|
|
|
try:
|
|
import idlelib.PyShell
|
|
idlelib.PyShell.main()
|
|
except:
|
|
# IDLE is not installed, but maybe PyShell is on sys.path:
|
|
import PyShell
|
|
PyShell.main()
|