python "import" of statically linked module with SWIG

Discussion in 'Python' started by samsappleton, Mar 11, 2008.

  1. samsappleton

    samsappleton Guest

    Hi

    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
    linked.


    Sam
    samsappleton, Mar 11, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Douthitt

    Statically-linked binary SegFaults

    David Douthitt, May 20, 2004, in forum: C Programming
    Replies:
    1
    Views:
    380
    Malcolm
    May 20, 2004
  2. Ralph Butler

    statically linked python

    Ralph Butler, Jun 17, 2006, in forum: Python
    Replies:
    3
    Views:
    477
    Serge Orlov
    Jun 20, 2006
  3. Replies:
    2
    Views:
    1,156
  4. pratap
    Replies:
    20
    Views:
    745
    Flash Gordon
    Mar 7, 2007
  5. David Cournapeau

    Statically linked extension and relative import

    David Cournapeau, May 7, 2009, in forum: Python
    Replies:
    0
    Views:
    289
    David Cournapeau
    May 7, 2009
Loading...

Share This Page