[lldb] Go through the plugin interface to obtain the scripting path (#182400)
Avoid directly including `ScriptInterpreterPython.h` in `SBHostOS`, and instead go through the plugin interface to obtain the scripting path. This also deprecates the ``SBHostOS::GetLLDBPythonPath`` method in favor of the more generic GetScriptPath variant.
This commit is contained in:
1 parent
963e2fb589
commit
11af80c3ec
7 files changed
+46
-16
No files matched your search
@@ -295,7 +295,8 @@ void ScriptInterpreterPython::Initialize() {
|
||||
PluginManager::RegisterPlugin(GetPluginNameStatic(),
|
||||
GetPluginDescriptionStatic(),
|
||||
lldb::eScriptLanguagePython,
|
||||
ScriptInterpreterPythonImpl::CreateInstance);
|
||||
ScriptInterpreterPythonImpl::CreateInstance,
|
||||
ScriptInterpreterPythonImpl::GetPythonDir);
|
||||
ScriptInterpreterPythonImpl::Initialize();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user