kicad-library-utils icon indicating copy to clipboard operation
kicad-library-utils copied to clipboard

Minor improvements to sch + schlib

Open madworx opened this issue 6 years ago • 3 comments

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

madworx avatar Dec 10 '18 16:12 madworx

are the init files empty on purpose?

poeschlr avatar Jan 31 '19 16:01 poeschlr

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

madworx avatar Jan 31 '19 18:01 madworx

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/

poeschlr avatar Jan 31 '19 19:01 poeschlr