Staging
v0.5.1
https://github.com/python/cpython
Revision 6a8af9ab36aaa18308f5f742a81035d7d9e41b5e authored by Serhiy Storchaka on 08 May 2016, 21:14:22 UTC, committed by Serhiy Storchaka on 08 May 2016, 21:14:22 UTC
2 parent s 3e99fde + df40b62
Raw File
Tip revision: 6a8af9ab36aaa18308f5f742a81035d7d9e41b5e authored by Serhiy Storchaka on 08 May 2016, 21:14:22 UTC
Issue #25745: Fixed leaking a userptr in curses panel destructor.
Tip revision: 6a8af9a
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