Fixed 'command script import' by eliminating the shadowing of basename.

Reviewed by: Daniel Malea

llvm-svn: 181027
This commit is contained in:
Ashok Thirumurthi 2013-05-03 15:56:59 +00:00
parent 00622f7d26
commit d77e8aefe3
1 changed files with 1 additions and 2 deletions

View File

@ -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;