Gasman2014 / KiCad-Diff

Scripts for performing image diffs between pcbnew layout revisions
MIT License
248 stars 42 forks source link

Support for Kicad v6 (5.99) #55

Closed leoheck closed 3 years ago

leoheck commented 3 years ago

PlotPcb.py does not work on Kicad >= 5.99 yet at least on my Linux box (Ubuntu 21.04)

leoheck commented 3 years ago

Got a reply here on how to use the new pcbnew module

This is what we need to do in Linux right now to be able to use the nightly pcbnew module from the latest Kicad

export PYTHONPATH=/usr/lib/kicad-nightly/lib/python3/dist-packages/ 
export LD_LIBRARY_PATH=/usr/lib/kicad-nightly/lib/python3/dist-packages/

And then if you use this in your python script

import pcbnew
print(pcbnew.GetBuildVersion())

It is going to output this

5.99.0-unknown-b10f156dd0~130~ubuntu21.04.1