new booleans dealing with Python shell output directory After checking for a remote shell, the following variables are consulted:
py-use-current-dir-when-execute-p, default t When `t', current directory is used by Python-shell for output of `py-execute-buffer' and related commands
py-fileless-buffer-use-default-directory-p, default t When `py-use-current-dir-when-execute-p' is non-nil and no buffer-file exists, value of `default-directory' sets current working directory of Python output shell"
py-keep-shell-dir-when-execute-p, default nil Don't change Python shell's current working directory when sending code.
`py-execute-directory', default nil
If nothing was set so far, $VIRTUAL_ENV and $HOME are queried.