[Prophesy] C from Python Example
Rasmus Andersen
rasmus at jaquet.dk
Wed Jun 12 02:47:34 EST 2002
On Tue, Jun 11, 2002 at 05:17:08PM +0200, Daniel Phillips wrote:
> 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.
As I tried to say, that is one problem I haven't had: On a variety
of platforms I have been able to load from working directory.
Rasmus
More information about the Prophesy
mailing list