diff options
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 8d41f71d83d..3206154224b 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -2593,8 +2593,8 @@ ScriptInterpreterPython::LoadScriptingModule (const char* pathname, { FileSpec target_file(pathname, true); + std::string basename(target_file.GetFilename().GetCString()); - std::string basename; StreamString command_stream; // Before executing Pyton code, lock the GIL. @@ -2612,7 +2612,6 @@ ScriptInterpreterPython::LoadScriptingModule (const char* pathname, else { const char* directory = target_file.GetDirectory().GetCString(); - std::string basename(target_file.GetFilename().GetCString()); // now make sure that Python has "directory" in the search path StreamString command_stream; |

