diff --git a/pcbnew/pcbnew.cpp b/pcbnew/pcbnew.cpp index ebdbe066be..63f4b4a74b 100644 --- a/pcbnew/pcbnew.cpp +++ b/pcbnew/pcbnew.cpp @@ -286,10 +286,10 @@ static bool scriptingSetup() pypath = Pgm().GetExecutablePath() + wxT( "../lib/python2.7/dist-packages" ); - if( !wxIsEmpty( wxGetenv( wxT( "PYTHONPATH" ) ) ) + if( !wxIsEmpty( wxGetenv( wxT( "PYTHONPATH" ) ) ) ) pypath = wxString( wxGetenv( wxT( "PYTHONPATH" ) ) ) + wxT( ":" ) + pypath; - wxSetEnv( wxT( "PYTHONPATH" ), pypath ); + wxSetEnv( wxT( "PYTHONPATH" ), pypath ); // Add this default search path: path_frag = Pgm().GetExecutablePath() + wxT( "../share/kicad/scripting/plugins" );