Skip to content

Commit 2951d21

Browse files
author
Roberto De Ioris
committed
added UnrealEnginePython plugin foler in sys.path
1 parent 866b236 commit 2951d21

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎Source/UnrealEnginePython/Private/UnrealEnginePython.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,12 @@ void FUnrealEnginePythonModule::StartupModule()
320320
{
321321
ScriptsPaths.Add(PluginScriptsPath);
322322
}
323+
324+
// allows third parties to include their code in the main plugin directory
325+
if (plugin->GetName() == "UnrealEnginePython")
326+
{
327+
ScriptsPaths.Add(plugin->GetBaseDir());
328+
}
323329
}
324330
#endif
325331

0 commit comments

Comments
 (0)