I have an Electron app xxx.exe
which is spawning an executable created from PyInstaller yyy.exe
. In, yyy.exe
, I am finally trying to launch a git
cmd via subprocess.check_output()
.
Sadly, the call to check_output()
throws [WinError 6] The handle is invalid
.
If yyy.exe
is directly launched on the command line, everything is running fine.
The issue is only happening on Windows. My assumption is that there are some checks on stdin
that trigger the exception because running through an Electron app doesn't provide any Stdin.
Any hints would be appreciated! Thanks in advance!