I have a Python script that was packaged into an executable through pyinstaller.
The idea is to use the executable to read data from files written by the game client and perform some actions with this data. I am relying on Python for this purpose since it is much more straight forward for me to implement there.
I want to launch that external executable by calling: FPlatformProcess::CreateProc(TEXT("path-to-my-program"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
For testing purposes, I’ve set up a Python script test.py
that just creates a textfile in the launch directory. The executable ../some/directory/test.exe
generated from test.py
performs this task. However, when trying to launch from Unreal through FPlatformProcess::CreateProc(TEXT("../some/directory/test.exe"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);
the text file is not generated, therefore I assume the program did not run sucessfully.
Launching for example Firefox through FPlatformProcess::CreateProcess
works perfectly fine. Any suggestions what to try?