I\'m working in an embedded Linux environment and I have some Python code which I would like to use. My Python code is just doing some math, not using any library other than
Embedding the CPython interpreter into a C or C++ program is actually pretty straightforward.
The official documentation has some complete examples.
Also, check out SWIG and Boost.Python.