Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 5c5f3de16e42d8e9d3f11c9d0e8184659def5ae3 authored by Benjamin Peterson on 06 May 2009, 20:43:28 UTC
bump version to 3.1b1
Tip revision: 5c5f3de
idle.py
import os.path
import sys

# If we are working on a development version of IDLE, we need to prepend the
# parent of this idlelib dir to sys.path.  Otherwise, importing idlelib gets
# the version installed with the Python used to call this module:
idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, idlelib_dir)

import idlelib.PyShell
idlelib.PyShell.main()
back to top