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

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. plb
    Replies:
    0
    Views:
    579
  2. plb
    Replies:
    0
    Views:
    457
  3. Bill Davy
    Replies:
    0
    Views:
    903
    Bill Davy
    May 12, 2005
  4. Ralph Butler

    statically linked python

    Ralph Butler, Jun 17, 2006, in forum: Python
    Replies:
    3
    Views:
    715
    Serge Orlov
    Jun 20, 2006
  5. pratap
    Replies:
    20
    Views:
    1,031
    Flash Gordon
    Mar 7, 2007
  6. David Cournapeau

    Statically linked extension and relative import

    David Cournapeau, May 7, 2009, in forum: Python
    Replies:
    0
    Views:
    395
    David Cournapeau
    May 7, 2009
  7. Peng Yu
    Replies:
    0
    Views:
    488
    Peng Yu
    Oct 31, 2009
  8. Stéphane Klein
    Replies:
    0
    Views:
    452
    Stéphane Klein
    Jul 5, 2011
Loading...