mvnmgrx / kiutils

Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
GNU General Public License v3.0
81 stars 27 forks source link

Added default version number to SymbolLib #55

Closed zardini123 closed 1 year ago

zardini123 commented 1 year ago

kiutils.symbol.SymbolLib does not have a default version number in KiUtils. A SymbolLib created in KiUtils that is then imported into KiCad fails to load due to the version number being "None", but KiCad 6.0 expects a version number.

This change uses the version number obtained from files migrated from .lib to .kicad_sym by KiCad's manager UI.

mvnmgrx commented 1 year ago

Indeed, the version number being optional is an oversight. I've added a minor comment to your changes, because we have a config file for that. I'm happy to merge your PR after that.

zardini123 commented 1 year ago

Thank you for the suggestions. They are now implemented.