Pcbnew: remove erroneous warning message when starting pcbnew if scripting mode is enabled and wxpython disabled

This commit is contained in:
jean-pierre charras 2015-07-09 21:22:40 +02:00
parent ca27eeb5c7
commit 6ec3d891d4
1 changed files with 1 additions and 3 deletions

View File

@ -286,9 +286,7 @@ static bool scriptingSetup()
path_frag = wxT( "/usr/local/kicad/bin/scripting/plugins" );
#endif
pcbnewInitPythonScripting( TO_UTF8( path_frag ) );
if( !IsWxPythonLoaded() )
if( ! pcbnewInitPythonScripting( TO_UTF8( path_frag ) ) )
{
wxLogError( wxT( "pcbnewInitPythonScripting() failed." ) );
return false;