Avoid loading KiCad 6 schematics.

Waiting for the Python bindings.
This commit is contained in:
Salvador E. Tropea 2020-10-15 18:53:44 -03:00
parent 17dd1d1be6
commit 235e4831a8
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ def load_sch():
GS.kicad_version = pcbnew.GetBuildVersion()
logger.debug('KiCad: '+GS.kicad_version)
GS.check_sch()
# We can't yet load the new format
if GS.sch_file[-9:] == 'kicad_sch':
return
GS.sch = Schematic()
try:
GS.sch.load(GS.sch_file)