← Back to team overview

kicad-developers team mailing list archive

Scripting build on Windows

 

Hi guys,

Last night I looked at building KiCad with scripting support. I merely
downloaded SWIG and added it to my build environment's path variable.

A python install was detected by find_package(PythonLibs) so that was
good. Everything builds correctly as far as I can tell, but I don't
appear to be able to get a board instance from python.

I paid attention to Miguel's note not to have the python lib in the
same directory as the PCBNEW executable, but I only ever get None
returned for GetBoard() in python.

I've not used SWIG interfaces before so I'm unsure how to go about
debugging the interface between python and pcbnew.

How can I tell if the PCBNEW lib is connected to the open PCBNEW or not?

Thanks for any hints!

Best Regards, Brian.


Follow ups