← Back to team overview

kicad-developers team mailing list archive

Re: About the sexp format

 

On Wed, Aug 14, 2013 at 02:01:23PM -0500, Dick Hollenbeck wrote:
> e) <kisrc>/common/ptree.cpp  which maybe you can SWIG and use it from Python on top of
> _pcbnew.so.
> 
> This way you are using the same parser/writer functions as kicad.  The difficulty will be
> getting access to the ptree nodes under python.  Maybe somebody has already SWIGed boost
> property tree.

If it isn't heavily templated like boost people like to do it shouldn't
be difficult to swig. Too bad that I see a PTREE::value_type which means
that probably it will need to be wrapped (AFAIK swig doesn't do
templates).

Anyway the plan was to handle the sexp files externally, so it doesn't
apply. And I don't like python either:P

-- 
Lorenzo Marcantonio
Logos Srl


References