enable running idle with idlelib in a nonstandard location this was once used to run development versions of idle because pep 434 declared idle py a public interface removal should require deprecation enable running idle with idlelib in a non standard location this was once used to run development versions of idle because pep 434 declared idle py a public interface removal should require deprecation this is subject to change
import os.path
import sys

idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if idlelib_dir not in sys.path:
    sys.path.insert(0, idlelib_dir)

from idlelib.pyshell import main  
main()