pyinstaller .exe works locally but fails when called by C#?
问题 I have created a script using Python2.7 and compiled it using pyinstaller into an exe of the same name, in this case "GeneralStats.py" turns into "GeneralStats.exe" using --onefile and -w arguments. When called with C# I use: var pythonDirectory = (Directory.GetCurrentDirectory()); var filePathExe1 = Path.Combine(pythonDirectory + "\\Python\\GeneralStats.exe"); Process.Start(filePathExe1); When called outside of C#, so in my local files I can run the .exe and the result is a text file with