[issue25488] IDLE: Remove idlelib from sys.path when added

2015-10-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: When python is started without running a file (Windows icon or command line), '' is prepended to sys.path. When IDLE is started from 3.5 icon, '' is prepended temporally after and spatially before '.../idlelib', so the latter, to be removed, is sys.path[1] an

[issue25488] IDLE: Remove idlelib from sys.path when added

2015-10-27 Thread Terry J. Reedy
New submission from Terry J. Reedy: Problem: Consider module idlelib.run. The following is correct. C:\Users\Terry>python -c "import run" Traceback (most recent call last): File "", line 1, in ImportError: No module named 'run' But in IDLE started from icon or command line >>> import run >>