May-25-2022, 07:09 PM
(May-25-2022, 07:08 PM)Gribouillis Wrote: It does not work exactly this way. C programs that execute Python code load the Python library which contains a whole set of C functions to communicate with the Python interpreter.
Start by reading Extending and Embedding the Python Interpreter (obviously the «embedding» part is what you are looking for), then have a look at the Python C Api reference manual.
Thank you very much Gribouillis