@@ -387,7 +387,7 @@ void FUnrealEnginePythonModule::StartupModule()
387387 IniValue.ParseIntoArray (ImportModules, separators, 3 );
388388 }
389389
390- FString ProjectScriptsPath = FPaths::Combine (*PROJECT_CONTENT_DIR, UTF8_TO_TCHAR (" Scripts " ));
390+ FString ProjectScriptsPath = FPaths::Combine (*PROJECT_CONTENT_DIR, UTF8_TO_TCHAR (" PythonScripts " ));
391391 if (!FPaths::DirectoryExists (ProjectScriptsPath))
392392 {
393393 FPlatformFileManager::Get ().GetPlatformFile ().CreateDirectory (*ProjectScriptsPath);
@@ -397,7 +397,7 @@ void FUnrealEnginePythonModule::StartupModule()
397397#if WITH_EDITOR
398398 for (TSharedRef<IPlugin>plugin : IPluginManager::Get ().GetEnabledPlugins ())
399399 {
400- FString PluginScriptsPath = FPaths::Combine (plugin->GetContentDir (), UTF8_TO_TCHAR (" Scripts " ));
400+ FString PluginScriptsPath = FPaths::Combine (plugin->GetContentDir (), UTF8_TO_TCHAR (" PythonScripts " ));
401401 if (FPaths::DirectoryExists (PluginScriptsPath))
402402 {
403403 ScriptsPaths.Add (PluginScriptsPath);
@@ -465,7 +465,7 @@ void FUnrealEnginePythonModule::StartupModule()
465465#if PY_MAJOR_VERSION >= 3
466466 init_unreal_engine_builtin ();
467467#if PLATFORM_ANDROID
468- FString InDirectory = FString (TEXT (" Scripts " ));
468+ FString InDirectory = FString (TEXT (" PythonScripts " ));
469469
470470 extern FString GExternalFilePath;
471471
@@ -479,7 +479,7 @@ void FUnrealEnginePythonModule::StartupModule()
479479
480480 FileManager->IterateDirectoryRecursively (*DirectoryPath, Visitor);
481481
482- FString Prefix = FApp::GetProjectName () / FString (TEXT (" Content/Scripts /" ));
482+ FString Prefix = FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts /" ));
483483
484484 for (TMap<FString, FDateTime>::TIterator TimestampIt (Visitor.FileTimes ); TimestampIt; ++TimestampIt)
485485 {
@@ -513,7 +513,7 @@ void FUnrealEnginePythonModule::StartupModule()
513513 FString IOSContentPath = IFileManager::Get ().ConvertToAbsolutePathForExternalAppForRead (*IFileManager::Get ().GetFilenameOnDisk (*FPaths::ConvertRelativePathToFull (PROJECT_CONTENT_DIR)));
514514 FString PyScriptsSearchPath = IOSContentPath / FString (TEXT (" lib" )) + FString (" :" ) +
515515 IOSContentPath / FString (TEXT (" lib/stdlib.zip" )) + FString (" :" ) +
516- IOSContentPath / FString (TEXT (" scripts " )); // the name of directory must be lower-case.
516+ IOSContentPath / FString (TEXT (" pythonscripts " )); // the name of directory must be lower-case.
517517
518518 Py_SetPath (Py_DecodeLocale (TCHAR_TO_UTF8 (*PyScriptsSearchPath), NULL ));
519519
0 commit comments