Calling python functions from C

robert.differentone at gmail.com robert.differentone at gmail.com
Sun Jul 16 16:47:13 EDT 2006


Could anybody tell me how to call python modules from C.

e.g. my Python module :
def add(a,b)
        return(a+b)

How can I call "add.py" from C? Please post any simple example.

I have read Python embedding in Python Manual but I get "ImportError"
all the time? 

 Any help would be appreciated !

R.




More information about the Python-list mailing list