Anyone can tell me why?
a_salnikov at yahoo.com
Sat Sep 14 22:33:58 CEST 2002
"hpyhpy" <member at dbforums.com> wrote in message
news:1815200.1031973626 at dbforums.com...
> I'm puzzled about SWIG.
> Then it has these files:
> 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.
More information about the Python-list