Does anyone know if I can import modules from a python library and use them in C.
How can I do this?
Many thanks
This is a discussion on import from python library within the C Programming forums, part of the General Programming Boards category; Does anyone know if I can import modules from a python library and use them in C. How can I ...
Does anyone know if I can import modules from a python library and use them in C.
How can I do this?
Many thanks
Of course.
Code:Py_Initialize(); PyObject *my_module = PyImport_Import("this"); ... Py_Finalize();
thanks Brafil