|
|
|
@ -1159,24 +1159,19 @@ void PCB_EDIT_FRAME::OnFlipPcbView( wxCommandEvent& evt ) |
|
|
|
Refresh(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PCB_EDIT_FRAME::PythonPluginsReload() |
|
|
|
{ |
|
|
|
// Reload plugin list: reload Python plugins if they are newer than
|
|
|
|
// Reload Python plugins if they are newer than
|
|
|
|
// the already loaded, and load new plugins
|
|
|
|
#if defined(KICAD_SCRIPTING)
|
|
|
|
//Reload plugin list: reload Python plugins if they are newer than
|
|
|
|
// the already loaded, and load new plugins
|
|
|
|
char cmd[1024]; |
|
|
|
|
|
|
|
snprintf( cmd, sizeof(cmd), |
|
|
|
"pcbnew.LoadPlugins(\"%s\")", TO_UTF8( PyScriptingPath() ) ); |
|
|
|
|
|
|
|
PyLOCK lock; |
|
|
|
|
|
|
|
// ReRun the Python method pcbnew.LoadPlugins (already called when starting Pcbnew)
|
|
|
|
PyRun_SimpleString( cmd ); |
|
|
|
PythonPluginsReloadBase(); |
|
|
|
|
|
|
|
#if defined(KICAD_SCRIPTING_ACTION_MENU)
|
|
|
|
// Action plugins can be modified, therefore the plugins menu
|
|
|
|
// must be updated:
|
|
|
|
RebuildActionPluginMenus(); |
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|