We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f065c4 commit aeb6b8dCopy full SHA for aeb6b8d
Source/UnrealEnginePython/Private/UnrealEnginePython.cpp
@@ -295,10 +295,11 @@ void FUnrealEnginePythonModule::StartupModule()
295
}
296
297
FString ProjectScriptsPath = FPaths::Combine(*PROJECT_CONTENT_DIR, UTF8_TO_TCHAR("Scripts"));
298
- if (FPaths::DirectoryExists(ProjectScriptsPath))
+ if (!FPaths::DirectoryExists(ProjectScriptsPath))
299
{
300
- ScriptsPaths.Add(ProjectScriptsPath);
+ FPlatformFileManager::Get().GetPlatformFile().CreateDirectory(*ProjectScriptsPath);
301
302
+ ScriptsPaths.Add(ProjectScriptsPath);
303
304
#if WITH_EDITOR
305
for (TSharedRef<IPlugin>plugin : IPluginManager::Get().GetEnabledPlugins())
0 commit comments