Fixed 'command script import' by eliminating the shadowing of basename.
Reviewed by: Daniel Malea llvm-svn: 181027
This commit is contained in:
parent
00622f7d26
commit
d77e8aefe3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue