* Thomas Nyberg (Thu, 10 Nov 2016 17:46:06 -0500) > > On 11/10/2016 05:32 PM, Thorsten Kampe wrote: > > Yes. That works. But it's not like subprocess should work. > > > > It certainly is odd. I can at least confirm that when I try to run your > code I get the error that you're expecting, but I run debian. > > Have you tried using os.unsetenv()?
I think you are kind of misunderstanding my intention. I'm actually trying the opposite: running python.exe by setting F:\PortableApps \Python3x as the first element in PATH. No Python interpreter is in my PATH. So unsetting PATH is just a way to demonstrate that this should never ever work. I'm going to open a bug report. Thorsten -- https://mail.python.org/mailman/listinfo/python-list