Fix failure on multiple DRC runs via scripting

(cherry picked from commit 2d010278ad)
This commit is contained in:
Jan Mrázek 2023-08-03 14:55:14 +02:00 committed by Jon Evans
parent 88dfe6eb9c
commit 8451e6dcf1
1 changed files with 3 additions and 1 deletions

View File

@ -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() );