MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / GetLocalIniPath

Method GetLocalIniPath

Source/URLabEditor/Private/MjPythonHelper.cpp:35–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include "Framework/Application/SlateApplication.h"
34
35FString 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
48FString FMjPythonHelper::GetUEBundledPythonPath()
49{

Callers

nothing calls this directly

Calls 1

IsValidMethod · 0.80

Tested by

no test coverage detected