[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2019-09-20 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2017-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: #25488 and #26143 address related issues of sys.path as seen by IDLE and user code. #26143 focuses on what IDLE sees, and user modules shadowing IDLE modules, #25488 focuses on what user code sees, and the presence of idlelib in sys.path making buggy code

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The sys.pyth manipulation will be different in the idle and user processes. If IDLE is started with -n, so both processes are the same, even more care is needed. -- ___ Python tracker

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2017-02-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should have said that the problem with having '' at the beginning of the path is that when IDLE tries to import an stdlib module and '' (usually a user directory) contain a file with the same name, IDLE will import the user file instead and at some point

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I usually start repository IDLE with 'import idlelib.idle' in repository console python, which I have pinned to my taskbar. This is at least as faster as entering a command in the console (which would block the console), keeps error messages for one version

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f788ad057ca by Terry Jan Reedy in branch '2.7': Issue #25488: Stpp idle.py from adding a entry when it is a duplicate. https://hg.python.org/cpython/rev/5f788ad057ca New changeset 013956a801e4 by Terry Jan Reedy in branch '3.5': Issue #25488: Stpp

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-09-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: sys.path for 3.6.0b1 on Win 10. Start python from icon (start menu), console (py -3.6) or Explorer (click on python.exe) '', 'C:\\Programs\\Python36\\python36.zip', 'C:\\Programs\\Python36\\DLLs', 'C:\\Programs\\Python36\\lib', 'C:\\Programs\\Python36',

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Upload: A listing of console (cross-platform) and icon (Windows-specific) IDLE starting methods and the effect on sys.path and current directory. I believe that some of the details of the 'constant' part of sys.path are system dependent, but stable across

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: In private email, eryk sun reports "/usr/bin/idle3 instead prepends 3 directories: ['', current_directory_absolute, '/usr/bin']. If I use the -r option to run a script, it instead prepends script_directory_relative, '', '/usr/bin']. I think these should be

[issue25488] IDLE: Remove '', user_dir, and idlelib from sys.path when added

2016-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: #25507 addresses the tkinter.font problem of Note 2 in the first message. -- title: IDLE: Remove '' and idlelib from sys.path when added -> IDLE: Remove '', user_dir, and idlelib from sys.path when added versions: -Python 3.4