From c523ba45e151b7bbdf3a4594bbf50c46d8ebb740 Mon Sep 17 00:00:00 2001 From: John Beard Date: Fri, 10 Mar 2017 02:59:36 +0800 Subject: [PATCH] Fix shadowed variable in python_scripting.cpp --- pcbnew/swig/python_scripting.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/swig/python_scripting.cpp b/pcbnew/swig/python_scripting.cpp index af57668ded..0ffc9aff6a 100644 --- a/pcbnew/swig/python_scripting.cpp +++ b/pcbnew/swig/python_scripting.cpp @@ -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;