Hello & thanks for reading.
I am porting some Python to C, exposing a few functions back to Python via CPython. However, some of the C still needs to call a function from a Python module.
Very specifically, what I need to do is import Pyglet.graphics.Batch so I can use it in my C code.
I know how to call Python functions using the CPython API, and how to coax out the data I need from any return, but I am failing to find out how to import a Python module to CPython (up to now, my experience has been defining callables via CPython and then calling them via CPython and/or Python).
I’m sure this is silly and easy, but for some reason the answer eludes me.
Thanks for any help!