Load the global fp-lib-table before running the Python DRC
Without this we get parity errors for all the KiCad footprints
(cherry picked from commit e5087ca3db
)
This commit is contained in:
parent
77fb7b1182
commit
d5c0bf3d0e
|
@ -472,6 +472,11 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
|
||||||
|
|
||||||
wxCHECK( prj, false );
|
wxCHECK( prj, false );
|
||||||
|
|
||||||
|
// 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() )
|
||||||
|
GFootprintTable.Load( fn_flp.GetFullPath() );
|
||||||
|
|
||||||
wxString drcRulesPath = prj->AbsolutePath( fn.GetFullName() );
|
wxString drcRulesPath = prj->AbsolutePath( fn.GetFullName() );
|
||||||
|
|
||||||
// Rebuild The Instance of ENUM_MAP<PCB_LAYER_ID> (layer names list), because the DRC
|
// Rebuild The Instance of ENUM_MAP<PCB_LAYER_ID> (layer names list), because the DRC
|
||||||
|
|
Loading…
Reference in New Issue