The following two python runs don't print the same output. Does anybody know why there is a difference? Thanks.
$ pwd
/tmp
$ cat main.py
import sys
print("\n".join(sys.path))
$ python3 -c 'import sys; print("\n".join(sys.path))' | head -n 1
$ python3 ./main.py | head -n 1
/private/tmp