KiCad / kicad-library-utils

Some scripts for helping with library development
GNU General Public License v3.0
128 stars 92 forks source link

Minor improvements to sch + schlib #271

Closed madworx closed 1 year ago

madworx commented 5 years ago

sch + schlib: Add initpy. files to enable kicad-library-utils to be included as a Python module. schlib: Enable finding modules by "alias" in addition to name.

poeschlr commented 5 years ago

are the init files empty on purpose?

madworx commented 5 years ago

Yes! They are only there to allow sch and schlib to be included as Python modules. (As I do in robotframework-kicadlibrary)

poeschlr commented 5 years ago

Empty init files are not needed it seems for python 3: https://stackoverflow.com/a/48804718 So i would suggest to fill out the init files with importing sub files as required. That allows you to import the library without needing to know how the files are named inside it.

Python 2 is dead so we really do not want to sink any resources in supporting it ;) https://pythonclock.org/