I have a C ++ program, and I want to implement scripts on it. Desired scenario: I have C ++ executable code, then it calls the python script at a certain time so that it knows what to do through the built-in interpreter, and the script then uses some form of API from the C ++ program. Here I ran into a problem. To expose C ++ code in python, you need to compile the DLL wrapper that you want and load it as a module inside python, and this will break my intent of python by accessing executable functions.
Is there any way to solve this problem without resorting to putting so many pieces of C ++ into a shared library?
source share