Where is the “demos” folder on MacOS? Is it normally installed with KiCAD?
I have a report from a user of KiCommand that “The Demos folder doesn’t get installed anywhere during KiCad installation on the mac…”
In my program (unit tests) I use the demos folder for testing python commands. I find the directory with the following (hopefully OS-independent) python:
KICAD_INSTALL = os.path.dirname(os.path.dirname(os.path.abspath(sys.executable)))
demodirectory = os.path.join(KICAD_INSTALL,'share','kicad','demos')
In particular, I look for the folders “complex_hierarchy”, “custom_pads_test”, and all the others.