The plugin folder KiCad loads (KiCad 9 and later): <KiCad's plugins
folder>/kicad2ems/. The repository's plugin/ folder is that folder, and the
Plugin and Content Manager installs the same files from its package
(tools/ipc/build_pcm.py):
plugin.json one action in the PCB editor's toolbar
kicad2ems_plugin.py the entry point: the window (kicad2ems.ipc.window)
requirements.txt what KiCad installs into the plugin's own Python
environment (kicad2ems, kicad-python, Qt)
icon-24.png, icon-48.png
python plugin/kicad2ems_plugin.py install [--kicad-version 10.0]
[--dir FOLDER] [--exec]
python plugin/kicad2ems_plugin.py uninstall
install copies the folder (runtime "python": KiCad builds the environment from
requirements.txt, as for a package from the Plugin and Content Manager). --exec
instead writes a plugin.json and a launcher that run this checkout's entry point
with this Python (runtime "exec"), for working on the plugin or using a
kicad2ems installed here (KiCad then builds no environment).
The plugins folder: <documents>/KiCad/<version>/plugins on Windows and macOS,
~/.local/share/kicad/<version>/plugins on Linux ($XDG_DATA_HOME). Without
--kicad-version: every KiCad 9 or later found there, else 10.0. KiCad reads it
at start (or Preferences > Plugins > Reload).