[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-07-14 Thread Terry J. Reedy
Terry J. Reedy 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

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-29 Thread E. Paine
E. Paine added the comment: This is simply because the Python interpreter is running from /usr/bin. This is shown if you call: cp /usr/bin/idle idle ./idle In this case, the Python interpreter is running from the directory you are in and /usr/bin shouldn't(!) show in the path (at least on

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-26 Thread paul rubin
paul rubin added the comment: Yes as mentioned I'm running Debian GNU/Linux, not Windows. By "idle is installed in /usr/bin" I mean that it is an executable shell script stored at /usr/bin/idle . Yes, shell prompt is the $ prompt to bash. When I run "python3 -m idlelib", /usr/bin does

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'IDLE' is an application implemented by Lib/idlelib. At least on Windows, application startup executables (like pip.exe, on Windows) are normally installed in /Scripts, at least on Windows. What, precisely, in 'installed in /usr/bin'? By 'shell prompt',

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread paul rubin
paul rubin added the comment: I'm using Debian 10 MATE live install and have been running IDLE by clicking an icon on the top panel, but I just tried running IDLE from the shell prompt in a terminal window, and also see /usr/bin in the path. In both cases, the output of

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: *Exactly* how are you starting IDLE? This should only happen if you start IDLE in /usr/bin or edit a file in /usr/bin. Is there any such thing on Linux/Debian as 'start IDLE from an icon', as on Windows? If so, is the starting directory part of the icon

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread paul rubin
paul rubin added the comment: Matthias, I get the same result you do when I run python from the shell command line. I see /usr/bin in the path when I import sys and print sys.path from inside IDLE. In other words this is an IDLE configuration oddity. Again I don't know if it's a bug.

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-25 Thread Matthias Klose
Matthias Klose added the comment: I can't reproduce that: $ python3.7 -c 'import sys; print (sys.path)' ['', '/usr/lib/python37.zip', '/usr/lib/python3.7', '/usr/lib/python3.7/lib-dynload', '/usr/local/lib/python3.7/dist-packages', '/usr/lib/python3/dist-packages'] -- resolution:

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-22 Thread Ned Deily
Change by Ned Deily : -- nosy: +doko ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40734] /usr/bin surprisingly in sys.path under IDLE

2020-05-22 Thread paul rubin
New submission from paul rubin : This is in the standard python 3.7.3 install under Debian 10. It's possible that this is on purpose, and it's (separately) possible that the Debian packagers did this for some reason. I'm not sure it's a bug but am reporting it as it's an oddity that might