Staging
v0.5.1
Revision 3b9406b08aad04c1f92d7a2ab03c8a42c3afb8be authored by Georg Brandl on 03 December 2010, 07:54:09 UTC, committed by Georg Brandl on 03 December 2010, 07:54:09 UTC
1 parent bd87d08
Raw File
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