kind-knife-49817
03/10/2021, 5:25 PMassoc .pex=pexfile
ftype pexfile=<FULL_PATH_TO_PYTHON.EXE> %1 %*
But when I was running tests, it was still failing on the subprocess.check_call()
and subprocess.check_output()
calls that were trying to call the pex file directly. I found this stackoverflow question after digging into what those two calls do on the windows side of things. That made me think that in windows we will need to run ShellExecute
instead of CreateProcess
and reading through the subprocess documentation I found the shell arg, and that seemed to solve the issue for windows. https://github.com/jacobnlsn/pex/commit/601785a1f23992aa3c6afa5a2279ba2fd8fa830a
In summary; After running the assoc and ftype commands and setting the shell arg true, we are able to successfully call the pex file in windows. What are your guys thoughts on this style of fix to move towards support for windows.kind-knife-49817
03/10/2021, 6:26 PMhundreds-father-404
03/10/2021, 6:30 PMassoc
and ftype
in their windows command prompt in order to use Pex?kind-knife-49817
03/10/2021, 6:57 PMhappy-kitchen-89482
03/11/2021, 4:43 AM