[issue40734] /usr/bin surprisingly in sys.path under IDLE
Terry J. Reedy
report at bugs.python.org
Tue Jul 14 17:06:13 EDT 2020
Terry J. Reedy <tjreedy at udel.edu> added the comment:
Lib/idlelib contains a startup file 'idle.py' (and 'idle.bat' and 'idle.pyw' on Windows). IDLE, and I, have no control over the installation of IDLE, including the addition of system-specific auxiliary startup files and entries, with names containing 'idle', outside of /idlelib. On Windows, there is no addition in pythondir/Scripts. The 'IDLE' Start menu shortcut run idlelib/idle.pyw.
I believe IDLE's only manipulation of sys.path for the user process is to prepend '' or the the edited file's directory. In my message above describing a possible experiment, 'sys.python' should be sys.path. You can keep exploring if you want, but I am closing this for now.
----------
resolution: works for me -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40734>
_______________________________________
More information about the Python-bugs-list
mailing list