Skip to content

Commit cd3757d

Browse files
committed
[ERC][KiCad 10] Also get fp-lib-table for legacy preflight
1 parent 3617c9b commit cd3757d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

kibot/pre_run_erc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from shutil import move
1515
from .macros import macros, document, pre_class # noqa: F401
1616
from .gs import GS
17+
from .kicad.config import KiConf
1718
from .optionable import Optionable
1819
from .kiplot import load_sch
1920
from .misc import ERC_ERROR, W_DEPR
@@ -76,6 +77,9 @@ def run(self):
7677
if GS.ki8:
7778
logger.warning(W_DEPR+'For KiCad 8 use the `erc` preflight instead of `run_erc`')
7879
command = self.ensure_tool('KiAuto')
80+
if GS.ki10:
81+
# KiCad 10 also needs the fp-lib-table ...
82+
KiConf.check_fp_lib_table(GS.pcb_file or GS.sch_file)
7983
# Workaround for KiCad 7 odd behavior: it forces a file extension
8084
# Note: One thing is adding the extension before you enter a name, other is add something you removed on purpose
8185
tmp_name = GS.tmp_file(suffix='.rpt', prefix='erc_report', what='ERC report', a_logger=logger)

0 commit comments

Comments
 (0)