I am searching a very small and simple sample to load a python module in C app. everywhere i search I see long example and I am not understand. If this is duplicate share stackoverflow link and I will delete this question. Thank you and i am new to Python.
Share
Create a Python Module name reverse.py as below:
Create a C application as below:
Now be sure to keep the reverse.py and your C application in the same folder. After that please compile and run C Sample Application.
Please study the each line in above sample, as there are about 20 total lines and if you have question about any line please let me know, I would be pleased to answer.
Credit goes to the SO Link here as I have corrected those samples: Embedding Python into C – importing modules