Re: Upcoming change to perl: current directory in @INC
* Lars Wirzenius <liw@liw.fi>, 2016-09-08, 14:04:
See https://docs.python.org/2/library/sys.html#sys.path for details.
That page documents the cases where the empty string (effectively the
same as .) are inserted into the beginning of sys.path, but they're not
relevant for installed software: one is for when you run python and
import on the REPL command line, the other is when you provide the
script on the command line ("python -c 'foo bar'").
There's plenty of installed shell scripts that call "python -c 'foo
bar'".
And there's even software that creates Python scripts in /tmp and then
calls them: https://bugs.python.org/issue16202 *cough*cough*cough*
--
Jakub Wilk
Reply to: