Loading an imported module (C API)

Discussion in 'Python' started by booncw, Apr 6, 2010.

  1. booncw

    booncw Guest

    Hi,

    I am running a simulation where the python module has already been
    imported. Could you please tell me how to load it?

    I've been doing this (importing everytime), but it is too slow:
    pModule = PyImport_Import(pName);


    Yours,

    Boon
     
    booncw, Apr 6, 2010
    #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. Berteun Damman
    Replies:
    0
    Views:
    567
    Berteun Damman
    Dec 17, 2003
  2. William Trenker

    How do I really delete an imported module?

    William Trenker, Dec 21, 2003, in forum: Python
    Replies:
    2
    Views:
    5,001
    Terry Reedy
    Dec 22, 2003
  3. dody suria wijaya

    Get importer module from imported module

    dody suria wijaya, Feb 7, 2005, in forum: Python
    Replies:
    5
    Views:
    637
    dody suria wijaya
    Feb 8, 2005
  4. kj
    Replies:
    9
    Views:
    504
    AK Eric
    Nov 12, 2009
  5. David
    Replies:
    2
    Views:
    694
    David
    Feb 11, 2010
  6. Dun Peal
    Replies:
    10
    Views:
    708
    Chris Rebert
    May 3, 2011
  7. Bob Lu
    Replies:
    0
    Views:
    256
    Bob Lu
    Jun 25, 2009
  8. Volker Nicolai
    Replies:
    9
    Views:
    2,101
    Fabian Pilkowski
    Jul 4, 2005
Loading...