| 33 | #include "Framework/Application/SlateApplication.h" |
| 34 | |
| 35 | FString FMjPythonHelper::GetLocalIniPath() |
| 36 | { |
| 37 | TSharedPtr<IPlugin> Plugin = IPluginManager::Get().FindPlugin("UnrealRoboticsLab"); |
| 38 | if (!Plugin.IsValid()) |
| 39 | { |
| 40 | UE_LOG(LogURLabEditor, Warning, TEXT("[Python] Could not find UnrealRoboticsLab plugin. Using project config dir.")); |
| 41 | return FPaths::ConvertRelativePathToFull(FPaths::ProjectPluginsDir() / TEXT("UnrealRoboticsLab") / TEXT("Config") / TEXT("LocalUnrealRoboticsLab.ini")); |
| 42 | } |
| 43 | FString FullPath = FPaths::ConvertRelativePathToFull(Plugin->GetBaseDir() / TEXT("Config") / TEXT("LocalUnrealRoboticsLab.ini")); |
| 44 | UE_LOG(LogURLabEditor, Verbose, TEXT("[Python] Local INI path: %s"), *FullPath); |
| 45 | return FullPath; |
| 46 | } |
| 47 | |
| 48 | FString FMjPythonHelper::GetUEBundledPythonPath() |
| 49 | { |