From 6ec3d891d4d81f882d5e71827efd7a82ae8bdca0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 9 Jul 2015 21:22:40 +0200 Subject: [PATCH] Pcbnew: remove erroneous warning message when starting pcbnew if scripting mode is enabled and wxpython disabled --- pcbnew/pcbnew.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index 8405c2b0cd..e8f5197411 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -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;