Using Py_Initialize(), we can start the python interpreter in a C++ program. However as the function does not return anything, we cannot use the same interpreter in a different program. Is there any way of calling Py_Initialize() in one C++ program, make the interpreter persistent and use it in a different C++ program(without calling Py_Initialize() again)?
Edit: To be more specific, Is there a way can get hold of an instance of a python interpreter and pass it to another execution as a parameter and use it to run python scripts.