Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python "import" of statically linked module with SWIG

Thread Tools

python "import" of statically linked module with SWIG

Posts: n/a

I compiled a SWIG wrapper & linked it with a main program in C (i'm
extending the main program/C with a python interpreter).

How can I "import" the swig wrapper module in Python? If I just
use "import <python-swig-module-name>", of course I get

ImportError: no module named XXXX

I don't want to expose any .so files if possible i.e. not dynamically


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statically linked extension and relative import David Cournapeau Python 0 05-07-2009 09:33 AM
what is fast dynamically linked executable or statically linked executable ?how to decide? pratap C Programming 20 03-07-2007 04:46 AM
statically linked python Ralph Butler Python 3 06-20-2006 01:39 AM
Statically linked library causes segmentation violation upon C++ throw C++ 2 06-09-2006 10:51 PM
Statically-linked binary SegFaults David Douthitt C Programming 1 05-20-2004 09:47 PM