diff --git a/kibot/out_base.py b/kibot/out_base.py index 73275cdd..bb673bef 100644 --- a/kibot/out_base.py +++ b/kibot/out_base.py @@ -8,6 +8,10 @@ from copy import deepcopy from .gs import GS from .kiplot import load_sch, get_board_comps_data from .misc import Rect, KICAD_VERSION_5_99, W_WRONGPASTE +if not GS.kicad_version_n: + # When running the regression tests we need it + from kibot.__main__ import detect_kicad + detect_kicad() if GS.kicad_version_n >= KICAD_VERSION_5_99: # pragma: no cover (Ki6) # New name, no alias ... from pcbnew import FP_SHAPE, wxPoint, LSET