Anyone can tell me why?

Andy Salnikov a_salnikov at yahoo.com
Sat Sep 14 16:33:58 EDT 2002



"hpyhpy" <member at dbforums.com> wrote in message
news:1815200.1031973626 at dbforums.com...
>
> hi,everybody:
>
> I'm puzzled about SWIG.
>
> [..........................]
>
> Then it has these files:
> example.c
> example.i
> example.o
> example_wrap.c
> example_wrap.doc
> example_wrap.o
> _examplecmodule.so
>
> So I wonder where is the "example.py"???
> So I can't "import example"
>
  The module 'example' is in the shared library (.so). But python
has to find this shared lib somehow, I mean you cannot give it
some random name and hope it will be found. Try to rename
_examplecmodule.so to example.so, import should work then.

  Andy.







More information about the Python-list mailing list