From 8245aa890ba312762dba18cdc36f6d0807510f85 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Tue, 31 Mar 2020 20:11:56 +0100 Subject: [PATCH] print-lldb-path Last-Update: 2020-01-21 Gbp-Pq: Name print-lldb-path.patch --- .../ScriptInterpreter/Python/ScriptInterpreterPython.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp index e470dfeab..cbd13730d 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp @@ -336,10 +336,11 @@ void ScriptInterpreterPython::ComputePythonDirForPosix( llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, LLDB_PYTHON_RELATIVE_LIBDIR); #else + llvm::sys::path::remove_filename(path, style); llvm::sys::path::append(path, style, - "python" + llvm::Twine(PY_MAJOR_VERSION) + "." + - llvm::Twine(PY_MINOR_VERSION), - "site-packages"); + "python3"/* + llvm::Twine(PY_MAJOR_VERSION) + "." + + llvm::Twine(PY_MINOR_VERSION)*/, + "dist-packages"); #endif } -- 2.30.2