Staging
v0.5.1
https://github.com/python/cpython
Revision 7089a4e127ca88f8eafe904a307e002b48d0ad8d authored by Senthil Kumaran on 07 November 2010, 12:57:04 UTC, committed by Senthil Kumaran on 07 November 2010, 12:57:04 UTC
1 parent 4a3c7c4
Raw File
Tip revision: 7089a4e127ca88f8eafe904a307e002b48d0ad8d authored by Senthil Kumaran on 07 November 2010, 12:57:04 UTC
Fix Issue10226 - Clarifying the role of the netloc separator.
Tip revision: 7089a4e
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