@@ -386,7 +386,7 @@ void FUnrealEnginePythonModule::StartupModule()
386386 IniValue.ParseIntoArray (ImportModules, separators, 3 );
387387 }
388388
389- FString ProjectScriptsPath = FPaths::Combine (*PROJECT_CONTENT_DIR, UTF8_TO_TCHAR (" Scripts " ));
389+ FString ProjectScriptsPath = FPaths::Combine (*PROJECT_CONTENT_DIR, UTF8_TO_TCHAR (" PythonScripts " ));
390390 if (!FPaths::DirectoryExists (ProjectScriptsPath))
391391 {
392392 FPlatformFileManager::Get ().GetPlatformFile ().CreateDirectory (*ProjectScriptsPath);
@@ -396,7 +396,7 @@ void FUnrealEnginePythonModule::StartupModule()
396396#if WITH_EDITOR
397397 for (TSharedRef<IPlugin>plugin : IPluginManager::Get ().GetEnabledPlugins ())
398398 {
399- FString PluginScriptsPath = FPaths::Combine (plugin->GetContentDir (), UTF8_TO_TCHAR (" Scripts " ));
399+ FString PluginScriptsPath = FPaths::Combine (plugin->GetContentDir (), UTF8_TO_TCHAR (" PythonScripts " ));
400400 if (FPaths::DirectoryExists (PluginScriptsPath))
401401 {
402402 ScriptsPaths.Add (PluginScriptsPath);
@@ -476,27 +476,27 @@ void FUnrealEnginePythonModule::StartupModule()
476476 FString UnrealEnginePython_OBBPath;
477477 if (FPaths::FileExists (*(OBBDir1 / MainOBBName)))
478478 {
479- UnrealEnginePython_OBBPath = OBBDir1 / MainOBBName / FApp::GetProjectName () / FString (TEXT (" Content/Scripts " ));
479+ UnrealEnginePython_OBBPath = OBBDir1 / MainOBBName / FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts " ));
480480 }
481481 else if (FPaths::FileExists (*(OBBDir2 / MainOBBName)))
482482 {
483- UnrealEnginePython_OBBPath = OBBDir2 / MainOBBName / FApp::GetProjectName () / FString (TEXT (" Content/Scripts " ));
483+ UnrealEnginePython_OBBPath = OBBDir2 / MainOBBName / FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts " ));
484484 }
485485 if (FPaths::FileExists (*(OBBDir1 / PatchOBBName)))
486486 {
487- UnrealEnginePython_OBBPath = OBBDir1 / PatchOBBName / FApp::GetProjectName () / FString (TEXT (" Content/Scripts " ));
487+ UnrealEnginePython_OBBPath = OBBDir1 / PatchOBBName / FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts " ));
488488 }
489489 else if (FPaths::FileExists (*(OBBDir2 / PatchOBBName)))
490490 {
491- UnrealEnginePython_OBBPath = OBBDir1 / PatchOBBName / FApp::GetProjectName () / FString (TEXT (" Content/Scripts " ));
491+ UnrealEnginePython_OBBPath = OBBDir1 / PatchOBBName / FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts " ));
492492 }
493493
494494 if (!UnrealEnginePython_OBBPath.IsEmpty ())
495495 {
496496 ScriptsPaths.Add (UnrealEnginePython_OBBPath);
497497 }
498498
499- FString FinalPath = GFilePathBase / FString (" UE4Game" ) / FApp::GetProjectName () / FApp::GetProjectName () / FString (TEXT (" Content/Scripts " ));
499+ FString FinalPath = GFilePathBase / FString (" UE4Game" ) / FApp::GetProjectName () / FApp::GetProjectName () / FString (TEXT (" Content/PythonScripts " ));
500500 ScriptsPaths.Add (FinalPath);
501501
502502 FString BasePythonPath = FinalPath / FString (TEXT (" stdlib.zip" )) + FString (" :" ) + FinalPath;
@@ -514,7 +514,7 @@ void FUnrealEnginePythonModule::StartupModule()
514514 FString IOSContentPath = IFileManager::Get ().ConvertToAbsolutePathForExternalAppForRead (*IFileManager::Get ().GetFilenameOnDisk (*FPaths::ConvertRelativePathToFull (PROJECT_CONTENT_DIR)));
515515 FString PyScriptsSearchPath = IOSContentPath / FString (TEXT (" lib" )) + FString (" :" ) +
516516 IOSContentPath / FString (TEXT (" lib/stdlib.zip" )) + FString (" :" ) +
517- IOSContentPath / FString (TEXT (" scripts " )); // the name of directory must be lower-case.
517+ IOSContentPath / FString (TEXT (" pythonscripts " )); // the name of directory must be lower-case.
518518
519519 Py_SetPath (Py_DecodeLocale (TCHAR_TO_UTF8 (*PyScriptsSearchPath), NULL ));
520520
0 commit comments