[Prophesy] C from Python Example

Daniel Phillips phillips at bonn-fries.net
Wed Jun 12 01:17:08 EST 2002


On Tuesday 11 June 2002 09:31, Rasmus Andersen wrote:
> While I am at it, I might as well give the incantations:
> 
> % swig -python transform.i
> % cc -I/usr/include/python2.2 -shared -o foo.so transform.c transform_wrap.c
> 
> The tutorial at the www.swig.org site is fairly short and concise.

Yes, it is.  There's one incantation missing: how do you import your foo.so
module into python?  So far I don't know how to go about loading a module
that's in my current working directory.

-- 
Daniel



More information about the Prophesy mailing list