[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd delays when cwd is on a network mount

On 12Oct2019 14:04, Greg Ewing <greg.ewing at> wrote:
>Cameron Simpson wrote:
>>Python's default sys.path includes the current working directory.
>Only in an interactive session, where it usually makes sense.

Personally, I would not consider this:

  % python3 -c 'import sys;print(repr(sys.path))'
  ['', '/Users/cameron/lib/python', '/Users/cameron/rc/python', 

to be interactive. It is at a terminal, but that seems a very low bar.

I see that plain "python" does not include the current 
directory though.

Cameron Simpson <cs at>