Injecting python function in an embedded python engine

Discussion in 'Python' started by Roberto Fichera, Apr 6, 2009.

  1. Hi All in the list,

    I've embedded python v2.6.x engine into my application without any problem.
    Now I would like to inject some additional functions after importing a
    python module.
    So, basically I'm importing a python module via PyImport_ImportModule()
    function.
    The python module is a simple set of functions and I would check if some
    functions
    does exist or not, than if doesn't I would add it from my C application.
    Checking if
    a function does exist or not isn't an issue, it works without any
    problem, my problem
    is only how to inject a new function in an already imported module.

    Thanks in advance,
    Roberto Fichera.
    Roberto Fichera, Apr 6, 2009
    #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. =?Utf-8?B?SmViQnVzaGVsbA==?=

    Is ASP Validator Regex Engine Same As VS2003 Find Regex Engine?

    =?Utf-8?B?SmViQnVzaGVsbA==?=, Oct 22, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    687
    =?Utf-8?B?SmViQnVzaGVsbA==?=
    Oct 22, 2005
  2. George Sakkis

    Injecting code into a function

    George Sakkis, Apr 25, 2005, in forum: Python
    Replies:
    17
    Views:
    453
    Lonnie Princehouse
    Apr 26, 2005
  3. Graham Menhennitt
    Replies:
    2
    Views:
    281
    Graham Menhennitt
    Jan 11, 2007
  4. Cong Ma
    Replies:
    0
    Views:
    249
    Cong Ma
    Jan 15, 2009
  5. tai
    Replies:
    6
    Views:
    177
    Bart Lateur
    Nov 19, 2006
Loading...

Share This Page