Windows: subprocess won't run different Python interpreter

eryk sun eryksun at gmail.com
Fri Nov 11 06:40:38 EST 2016


On Fri, Nov 11, 2016 at 11:30 AM, Gisle Vanem via Python-list
<python-list at python.org> wrote:
> Thorsten Kampe wrote:
>
>> My goal is to verify that other shells/interpreters on Windows work
>> the same way as Python when running an application or creating a sub-
>> process. Cmd does not. What's else there? I have Bash here but that's
>> a Cygwin executable. And Cygwin Python does not work like Windows
>> Python.
>>
>> Any ideas?
>
> Is there a Python.exe in the Registry "App Paths". Either of these:
>  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths
> or
>  HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

An "App Paths" key would be used by ShellExecuteEx, not CreateProcess,
so it has no bearing on the behavior of subprocess.Popen with
shell=False.



More information about the Python-list mailing list