In my shell (Bash), I can switch among several LaTeX distros setting the $PATH variable. E.g.:
export PATH=/usr/local/texlive/2016/bin/x86_64-linux:$PATH
or
export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH
This doesn't affect the LaTeX distro used by emacs when I call the function tex-file.
Is there a way to set the $PATH variable used by emacs once it is running.
I need it to test the .pdf file layout generated by different LaTeX distros while working on a document.