Skip to content

Commit 27bb2f3

Browse files
author
Roberto De Ioris
committed
correctly acquire the gil in commandlet
1 parent 34bbe25 commit 27bb2f3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Source/UnrealEnginePython/Private/PyCommandlet.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ UPyCommandlet::UPyCommandlet(const FObjectInitializer& ObjectInitializer)
1111

1212
int32 UPyCommandlet::Main(const FString& CommandLine)
1313
{
14+
FScopePythonGIL gil;
15+
1416
TArray<FString> Tokens, Switches;
1517
TMap<FString, FString> Params;
1618
ParseCommandLine(*CommandLine, Tokens, Switches, Params);

0 commit comments

Comments
 (0)