kicad-developers team mailing list archive
Mailing list archive
Re: Scripting build on Windows
Wow wow woow!!! :D
If you're using console Python, and call import pcbnew, then you should use
if it's a pcbnew console inside pcbnew window, then It really seems like
the pcbnew is reloading the
pcbnew.dll and then GetBoard cannot find the "frame" pcb, in that case try
to put the .dll out of path
for the pcbnew .exe
2012/10/24 Brian Sidebotham <brian.sidebotham@xxxxxxxxx>
> 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.
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
Miguel Angel Ajo Pelayo
+34 636 52 25 69