diff --git a/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp b/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp index 07e90ce3b5..145d851f71 100644 --- a/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp +++ b/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp @@ -486,8 +486,10 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits, // Load the global fp-lib-table otherwise we can't check the libs parity wxFileName fn_flp = FP_LIB_TABLE::GetGlobalTableFileName(); - if( fn_flp.FileExists() ) + if( fn_flp.FileExists() ) { + GFootprintTable.Clear(); GFootprintTable.Load( fn_flp.GetFullPath() ); + } wxString drcRulesPath = prj->AbsolutePath( fn.GetFullName() );