On Thu, Jun 1, 2017 at 4:46 PM, Chris Angelico <ros...@gmail.com> wrote: > (AIUI, the *current directory* is never on Python's path, but the > *script directory* is. They're the same thing a lot of the time.)
sys.path includes the current directory (i.e. an empty string) when there's no script, which includes the REPL, -c, and -m. It's removed by [-I]solated mode, which also removes the script directory. _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/