On 10/24/2012 03:20 PM, Miguel Angel Ajo Pelayo wrote:
>
> Wow wow woow!!! :D
>
> If you're using console Python, and call import pcbnew, then you should use
> LoadBoard("xxxxx"),
>
> http://bazaar.launchpad.net/~kicad-testing-committers/kicad/testing/view/head:/pcbnew/scripting/examples/listPcb.py
> <http://bazaar.launchpad.net/%7Ekicad-testing-committers/kicad/testing/view/head:/pcbnew/scripting/examples/listPcb.py>
>
> 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


Is this theory anything? :

Linux is I think a little more flexible on dynamic linking than windows is.  So 
we may
have inadvertently become dependent on a feature of linux that will not be 
present on windows.

Namely, the ability to dynamically link to the startup image of the process, 
i.e. the main
executable file, rather than the DSO.

In window terms, that means that dynamically linking to the *.EXE is not 
analogously
possible to my knowledge, only to a *.DLL.




>
> 2012/10/24 Brian Sidebotham <[email protected] 
> <mailto:[email protected]>>
>
>     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
>     <https://launchpad.net/%7Ekicad-developers>
>     Post to     : [email protected]
>     <mailto:[email protected]>
>     Unsubscribe : https://launchpad.net/~kicad-developers
>     <https://launchpad.net/%7Ekicad-developers>
>     More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> -- 
>
> Miguel Angel Ajo Pelayo
> http://www.nbee.es
> +34 636 52 25 69
> skype: ajoajoajo
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to