[python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-08 Thread Niko Pasanen
Hi all, I'm having some challenges using pywin32 to launch a 32-bit Windows application, but the tricky thing is that I cannot reproduce the problem on my machine or my coworkers (person B) machine, but only on some other persons' (person C) machine, so my changes to debug this are very rare & lim

Re: [python-win32] win32process.CreateProcess: '%1 is not a valid Win32 application.'

2020-12-08 Thread Eryk Sun
On 12/8/20, Niko Pasanen wrote: > > path_to_exe = Path(r"C:\path to some\folder\some.exe") FYI, the constructor of pathlib.Path supports forward slash as the path separator, which avoids the need to use a raw string. A WindowsPath instance uses backslash when converting back to a string. > (h_pr