We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b26a21 commit 4c47cbcCopy full SHA for 4c47cbc
Source/UnrealEnginePython/Private/PyCommandlet.cpp
@@ -94,12 +94,16 @@ int32 UPyCommandlet::Main(const FString& CommandLine)
94
strcpy_s(argv[i], PyArgv[i].Len() + 1, TCHAR_TO_UTF8(*PyArgv[i].ReplaceEscapedCharWithChar()));
95
#endif
96
97
-}
+ }
98
99
PySys_SetArgv(PyArgv.Num(), argv);
100
101
+ Py_BEGIN_ALLOW_THREADS;
102
+
103
FUnrealEnginePythonModule &PythonModule = FModuleManager::GetModuleChecked<FUnrealEnginePythonModule>("UnrealEnginePython");
104
PythonModule.BrutalFinalize = true;
105
PythonModule.RunFile(TCHAR_TO_UTF8(*Filepath));
106
107
+ Py_END_ALLOW_THREADS;
108
return 0;
109
}
0 commit comments