Fix shadowed variable in python_scripting.cpp

This commit is contained in:
John Beard 2017-03-10 02:59:36 +08:00 committed by Maciej Suminski
parent 4605cae588
commit c523ba45e1
1 changed files with 3 additions and 3 deletions

View File

@ -188,13 +188,13 @@ bool pcbnewInitPythonScripting( const char * aUserScriptingPath )
// load pcbnew inside python, and load all the user plugins, TODO: add system wide plugins
{
char cmd[1024];
char loadCmd[1024];
PyLOCK lock;
snprintf( cmd, sizeof(cmd), "import sys, traceback\n"
snprintf( loadCmd, sizeof(loadCmd), "import sys, traceback\n"
"sys.path.append(\".\")\n"
"import pcbnew\n"
"pcbnew.LoadPlugins(\"%s\")", aUserScriptingPath );
PyRun_SimpleString( cmd );
PyRun_SimpleString( loadCmd );
}
return true;