Standalone KicadModTree package with tools and config files
Hi,
I'm currently building my personal footprint and 3D model library using the KicadModTree library. It has been a great tool so far, but the way it is imported in scripts puzzles me.
For instance, here is an example from the make_Capacitors_THT.py script :
sys.path.append(os.path.join(sys.path[0],"..","..","kicad_mod")) # load kicad_mod path
sys.path.append(os.path.join(sys.path[0],"..","..")) # load kicad_mod path
sys.path.append(os.path.join(sys.path[0],"..","tools")) # load kicad_mod path
from KicadModTree import * # NOQA
from drawing_tools import *
from footprint_scripts_resistorlike import *
My question is: why is the different files and helper scripts not gathered into the KicadModTree library ? It would allow to make the import in the simpler way.
from KicadModTree import *
from KicadModTree.tools.drawing_tools import *
from KicadModTree.tools.footprint_scripts_resistorlike import *
from KicadModTree.config.klc import get_klc # if getting the yaml file is necessary
Paul